I like the touchpad, but often use a mouse. Sometimes the touchpad is just too sensitive and I need to turn it off. I do not want it permanently off, so I have a script to toggle it on/off, and bind that to a key in openbox.
# .......1.........2.........3.........4.........5.........6....
# bind to a key in openbox <keyboard> section
# see
http://openbox.org/wiki/Help:Bindings# see
http://openbox.org/wiki/Help:Actions# edit ~/.config/openbox/lxde-rc.xml # WattOS R10
# edit ~/.config/openbox/lubuntu-rc.xml # Lubuntu 16.04.1
# add to the <keyboard> section of openbox
# S-F1 means Shift and F1
<keybind key="S-F1"><action name="Execute">
<command>~/bin/ToggleTouchpad.sh</command>
</action></keybind>
# then in terminal issue this command to activate
openbox --reconfigure
# create a shell script, I put mine in ~/bin
# one key to TOGGLE touchpad on/off
# .......1.........2.........3.........4.........5.........6....
#!/bin/bash
# ToggleTouchpad.sh
# touchpad states: 0=on 1=off 2=only tapping and scrolling off
ST=$( synclient | grep -o TouchpadOff.* | grep -o [0-2] )
synclient TouchpadOff=$(( ST &1 ^1 )) # and xor # cycle 0 1
# .......1.........2.........3.........4.........5.........6....
# alternates
# synclient TouchpadOff=$(( (ST +1) %2 )) # add mod # cycle 0 1
# synclient TouchpadOff=$(( ST &2 ^2 )) # and xor # cycle 0 2
# synclient TouchpadOff=$(( (ST +1) %3 )) # add mod # cycle 0 1 2
# ST= get touchpad status
# $( start command substitution
# synclient command - list current user settings
# | send user settings to grep
# grep -o TouchpadOff.* search settings (-o print only matched parts)
# | send found string to next grep
# grep -o [0-2] search for 0,1,2
# ) end command substitution
# synclient TouchpadOff= set new value
# $(( start arithmetic expansion/evaluation
# ST current status
# & bitwise and
# 1 mask bit 0
# ^ bitwise xor
# 1 toggle bit 0
# )) end arithmetic expansion/evaluation