30 март 2010

Workaround for laptop touchpad enable/disable in linux

Just a very brief suggestion for a temporal workaround for laptop's touchpad enabling or disabling if your native fn-keys are not working...

One may write a script for the command line tool controling the synaptics Xorg input driver for Synaptics Incorporated touchpads and assign a single command to any fast-key manager for the window manager that one uses.

Command could be:

synclient touchpadoff=$(synclient -l|gawk '{IGNORECASE=1}/touchpadoff/{print 1-$3}')

It will simply start synclient touchpadoff= 1 or 0 depending the current status.

Няма коментари: