Created
July 14, 2017 19:24
-
-
Save smlb/18957b74dc23dc39622c5852fafd43fc to your computer and use it in GitHub Desktop.
nobody cares
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
#!/usr/bin/env bash | |
# toggle the touchpad | |
state=$(awk '/TouchpadOff/ { print $3 }' <(synclient -l)) | |
case "$state" in | |
0) synclient touchpadoff=1 | |
unclutter -noevents | |
;; | |
1) synclient touchpadoff=0 | |
if pidof unclutter; then pkill unclutter; fi | |
;; | |
*) exit 1 | |
;; | |
esac |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment