Skip to content

Instantly share code, notes, and snippets.

@pfsmorigo
Created July 30, 2012 19:41
Show Gist options
  • Save pfsmorigo/3209501 to your computer and use it in GitHub Desktop.
Save pfsmorigo/3209501 to your computer and use it in GitHub Desktop.
Toggle the Lenovo T410 touchpad
#!/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