Skip to content

Instantly share code, notes, and snippets.

@mig82
Created May 13, 2022 09:40
Show Gist options
  • Save mig82/41721b54f77e903ba7c8095b3da4dd89 to your computer and use it in GitHub Desktop.
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.
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