My personal dotfiles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

keyboard-toggle 333B

12345678910111213141516
  1. #!/bin/bash
  2. kb_name='AT Translated Set 2 keyboard'
  3. if [[ "$1" == "enable" ]]; then
  4. xinput enable "$kb_name"
  5. elif [[ "$1" == "disable" ]]; then
  6. xinput disable "$kb_name"
  7. else
  8. if xinput list "$kb_name" | grep -i --quiet disable; then
  9. xinput enable "$kb_name"
  10. else
  11. xinput disable "$kb_name"
  12. fi
  13. fi