Created
July 30, 2012 19:41
-
-
Save pfsmorigo/3209501 to your computer and use it in GitHub Desktop.
Toggle the Lenovo T410 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 | |
# Add to i3 config: | |
# bindsym XF86TouchpadToggle exec toggle_touchpad | |
STATE=0 | |
if [ "$(xinput list-props 12 | grep "Device Enabled" | cut -f 3)" == "0" ]; then | |
STATE=1 | |
fi | |
xinput set-prop 12 "Device Enabled" $STATE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment