Created
October 28, 2014 08:27
-
-
Save egroeper/3f1212275689fec48e8e to your computer and use it in GitHub Desktop.
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
#!/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