[xubuntu-users] toggle touchpad ON/OFF
Steve Litt
slitt at troubleshooters.com
Sun Mar 27 22:49:19 UTC 2016
On Sun, 27 Mar 2016 19:06:57 +0900
Thomas <nyuwa at hb.tp1.jp> wrote:
> Now .. THAT sounds wonderful and exactly what I am looking for.
> However, I am afraid I do not understand the instructions:
> (from the indicated website:)
>
> Touchpad Mouse Toggle
>
> This is actually a necessity on all laptops, because if you're doing
> serious typing, the mousepad will mess things up, so it's usually
> better to have it disabled. And yet sometimes you might need the
> mousepad. _So make the following shellscript, permissioned
> executable, and either put it on $PATH and call it ttog, or hotkey
> it:_
>
> #!/bin/bash
>
> curstate=`synclient | grep -i TouchpadOff | sed -e"s/.*= //"`
>
> if test "$curstate" = "1"; then
>
> synclient TouchpadOff=0
>
> else
>
> synclient TouchpadOff=1
>
> fi
>
> What am I supposed to do here? Thomas
Copy those lines into a file, located on the executable path, called
"touchtoggle". Chmod a+x touchtoggle.
Now, using your window manager, assign a hotkey to run touchtoggle.
Once you've done that, hitting the hotkey switches the touchpad to
"off". Hitting the hotkey once more switches it back to "on", over and
over, forever and ever.
This being Xubuntu's mailing list, I imagine you're using Xfce. Good
choice. If Xfce works the same as it did in 2012, the following
instructions should work:
http://www.troubleshooters.com/lpm/201206/201206.htm#_Hotkeys
HTH,
SteveT
Steve Litt
March 2016 featured book: Quit Joblessness: Start Your Own Business
http://www.troubleshooters.com/startbiz
More information about the xubuntu-users
mailing list