#! /bin/bash ####################################################### # toggle-mouse # Toggles mouse handedness # # Useful when external mouse is left-handed but # internal mouse should be right-handed, as on # iBooks with only one mouse button. ####################################################### LEFT="/desktop/gnome/peripherals/mouse/left_handed" if test `gconftool-2 --get $LEFT` = "true"; then \ echo Making mouse right-handed; \ gconftool-2 --set --type=bool $LEFT "false"; \ else \ echo Making mouse left-handed; \ gconftool-2 --set --type=bool $LEFT "true"; \ fi