Code: Select all
synclient TouchpadOff=$(if [[ $(expr `synclient -l | grep TouchpadOff | cut -f2 -d =`) == 0 ]]; then echo 1; else echo 0; fi)
The shortcut key is linked to "/home/isaac/Ubuntu\ One/touchpadoff"
The touch pad stops working for a second when I press the linked key, but then the touchpad starts workign again.
edit:
Putting the command directly into the key command shortcut provides the same result.
edit:
These two commands turn the touch pad on and off, no problem.
$synclient TouchPadOff=0
$synclient TouchPadOff=1