Skip to content

Instantly share code, notes, and snippets.

@hieulm
Created July 3, 2019 02:29
Show Gist options
  • Save hieulm/34972eec8a9e5a421704a2926e00b6f5 to your computer and use it in GitHub Desktop.
Save hieulm/34972eec8a9e5a421704a2926e00b6f5 to your computer and use it in GitHub Desktop.
disable_touchpad
#!/bin/bash
declare -i ID
ID=`xinput list | grep -Eo 'Touchpad\s*id\=[0-9]{1,2}' | grep -Eo '[0-9]{1,2}'`
xinput set-prop $ID "Device Enabled" 0
echo "Touchpad has been disabled."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment