You are not logged in.
Add this stanza to ~/.config/openbox/menu.xml:
<item label="Touchpad Toggle">
<action name="Execute">
<command>bash -c "[[ $(synclient | awk '/TouchpadOff/{print $NF}') -eq 1 ]] && synclient touchpadoff=0 || synclient touchpadoff=1"</command>
</action>
</item>
Or, if you are not feeling masochistic enough to edit XML directly [1], use:
Desktop right-click menu → Preferences → Openbox → GUI Menu Editor
And create a new entry with this in the Execute box:
bash -c "[[ $(synclient | awk '/TouchpadOff/{print $NF}') -eq 1 ]] && synclient touchpadoff=0 || synclient touchpadoff=1"
Once menu.xml has been changed, reconfigure Openbox to add the item to the current menu:
openbox --reconfigure
[1] XML sucks!
“Et ignotas animum dimittit in artes.” — Ovid, Metamorphoses, VIII., 18.
Offline
can't say anything about that, but...
Or, if you are not feeling masochistic enough to edit XML directly...
...i recommend using miniscripts in ~/bin for that (and make sure they use dash instead of bash for snappiness).
added bonus: no need to reconfigure openbox after editing the script.
Search youtube without a browser: repo | thread
BL quote proposals to this thread please.
my repos / my repos
Offline