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.
12345678910111213141516 |
- #!/bin/bash
-
- kb_name='AT Translated Set 2 keyboard'
-
- if [[ "$1" == "enable" ]]; then
- xinput enable "$kb_name"
- elif [[ "$1" == "disable" ]]; then
- xinput disable "$kb_name"
- else
- if xinput list "$kb_name" | grep -i --quiet disable; then
- xinput enable "$kb_name"
- else
- xinput disable "$kb_name"
- fi
- fi
|