Created
November 27, 2019 01:36
-
-
Save mr-m0nst3r/e0fadb77183acb0d8563335b0c4088a7 to your computer and use it in GitHub Desktop.
turn on/off touchpad on linux
This file contains hidden or 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 | |
if [ "$1" == "on" ]; then | |
/usr/bin/xinput enable "`xinput list | grep -i touchpad | awk '{print $3" "$4" "$5}'`" | |
elif [ "$1" == "off" ]; then | |
/usr/bin/xinput disable "`xinput list | grep -i touchpad | awk '{print $3" "$4" "$5}'`" | |
else | |
echo " Usage: touchpad on/off" | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment