Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
You can’t perform that action at this time.