Created
October 30, 2013 05:38
-
-
Save mengzhuo/7227672 to your computer and use it in GitHub Desktop.
Toggle TouchPad on Linux with synclient, works/Tested on Ubuntu
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/sh | |
synclient TouchpadOff=$((`synclient -l | grep TouchpadOff | awk '{print $3}'`==0)) |
Could be done using only awk:
exec synclient TouchpadOff=$(synclient | awk '/TouchpadOff/ {print $3 == 0}')
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks needed it for a keybinding for a hassle-free typing experience!