Thinkpad Fn-F8: Toggle Touchpad Example

… just something I’d like to share:
I inserted the following code into
/usr/lib/hotkey-setup/thinkpad_hotkey_handler


            4104)   HOTKEY="Fn+F8"
		ACTION="toggle_touchpad"
		/usr/bin/synclient "TouchpadOff=`/usr/bin/synclient -l | sed -ne 's/\(TouchpadOff *= *\)\([01]\)/\2/p' | sed -e 'y/01/10/'`"
		;;

This allows to toggle (enable/disable) the touchpad
(what makes me crazy during text editing)

Lenovo Thinkpad R61
OS 11.0
Package hotkey-setup-0.1-0.pm.1-x86_64 from packman