Created
July 3, 2019 02:29
-
-
Save hieulm/34972eec8a9e5a421704a2926e00b6f5 to your computer and use it in GitHub Desktop.
disable_touchpad
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
#!/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