This simple script uses gconf-editor, where it changes the bool value indicating whether it is on or off.
- in ENABLED variable is stored the actual state
Here's the script:
#!/bin/bash ENABLED=`gconftool-2 --get /desktop/gnome/peripherals/touchpad/touchpad_enabled` if [ $ENABLED == true ]; then `gconftool-2 --type bool --set /desktop/gnome/peripherals/touchpad/touchpad_enabled 0` else `gconftool-2 --type bool --set /desktop/gnome/peripherals/touchpad/touchpad_enabled 1` fi exit 0Copy the script into /usr/bin or /usr/local/bin, from where it will be run. You can map a keyboard shortcut on it.
No comments:
Post a Comment