#!/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