Skip to content

Instantly share code, notes, and snippets.

@wteuber
Last active October 3, 2023 15:01
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wteuber/18f62f31773d3f5dd9ab to your computer and use it in GitHub Desktop.
Save wteuber/18f62f31773d3f5dd9ab to your computer and use it in GitHub Desktop.
x11 disable all input devices for 10 seconds
inputs=($(xinput --list --id-only | sort -hr | tr "\n" " "))
for i in "${inputs[@]}"; do
echo $i
xinput --disable $i
done
sleep 10
for i in "${inputs[@]}"; do xinput --enable $i; done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment