Monthly Archives: August 2016

soft toggle a touchpad in XFCE

I have an ASUS U46E and the touchpad hotkey does not yet function at all. I made a hotkey under Settings->Keyboard->Application Shortcuts, Ctrl+Alt+9 to launch this script because Fn and F9 are in the vicinity anyway.


tp=`xinput list|grep "$name"|awk -F= '{print $2}'|awk '{print $1}'`
state=`xinput list-props $tp|grep 'Device Enabled'|awk -F\: '{print $2}'|awk '{print $1}'`
(( $state )) && xinput disable $tp || xinput enable $tp