accessing the infinite

Nothing in any universe can be more complex than the language needed to completely describe the thing; yet, when you were a kid, you learned your native language without even realizing you severely needed to do so. Never mind that the descriptions will become lengthy– the power of language is not wrapped up in its efficiency, though the relative power of a language may be.

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.

/usr/local/bin/toggle_touchpad.sh:

#!/bin/bash
name="BYD"
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