Skip to content

Instantly share code, notes, and snippets.

@egroeper
Created October 28, 2014 08:27
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save egroeper/3f1212275689fec48e8e to your computer and use it in GitHub Desktop.
#!/bin/bash
# XFCE Shortcut Settings:
# Settings -> Keyboard -> Shortcuts
# XF86TouchpadToggle makes to work using the Touchpad key on the keyboard (FN+F5)
enabled=`xinput --list-props "AlpsPS/2 ALPS GlidePoint" | grep -e "Device Enabled\ (135):\s*1"`
if [ -n "$enabled" ]; then
xinput --set-prop "AlpsPS/2 ALPS GlidePoint" "Device Enabled" 0
else
xinput --set-prop "AlpsPS/2 ALPS GlidePoint" "Device Enabled" 1
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment