Created
May 13, 2022 09:40
-
-
Save mig82/41721b54f77e903ba7c8095b3da4dd89 to your computer and use it in GitHub Desktop.
Make your main keyboard sleep for a while, for example if you're placing a different one on top, or your kid is banging on it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
keyboard_sleep(){ | |
# xinput -list | |
xinput --disable "AT Translated Set 2 keyboard" | |
sleep 3600 ; xinput --enable "AT Translated Set 2 keyboard" | |
} | |
keyboard_awake(){ | |
# xinput -list | |
xinput --enable "AT Translated Set 2 keyboard" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment