Skip to content

Instantly share code, notes, and snippets.

Avatar

Timothy Kanarsky tkanarsky

  • Los Angeles, CA
View GitHub Profile
@tkanarsky
tkanarsky / kb_clean.sh
Created May 6, 2021
Keyboard cleaning script -- disables keyboard for some number of seconds
View kb_clean.sh
#!/bin/bash
xinput --list
echo "Enter keyboard id:"
read kb
echo "Enter time to disable keyboard (sec):"
read sec
xinput set-prop $kb "Device Enabled" 0;