You are not logged in.
Pages: 1
To toggle touchpad I used the following script (according to arch wiki):
#!/bin/bash
synclient TouchpadOff=$(synclient -l | grep -c 'TouchpadOff.*=.*0')
This stopped working after xf86-input-synaptics was replaced with xf86-input-libinput. How do I toggle touchpad now?
Last edited by latgarf (2017-11-23 14:34:23)
Offline
"xinput disable <device>" - I'm not sure whether anything was "replaced", though - xf86-input-synaptics is unmaintained but available.
Offline
Thanks, Seth! I found this ubuntu help page useful, and borrowed their toggle script:
#!/bin/bash
if xinput list-props 13 | grep "Device Enabled (137):.*1" >/dev/null
then
xinput disable 13
notify-send -u low -i mouse "Trackpad disabled"
else
xinput enable 13
notify-send -u low -i mouse "Trackpad enabled"
fi
If I recall correctly, with the introduction of libinput, at install, a conflict was shown between xf86-input-synaptics and xf86-input-libinput. I chose to install libinput, hence breaking my usual way to toggle touchpad.
Offline
fcs: xf86-input-synaptics and xf86-input-libinput packages do not list mutual conflicts.
You should still be able to use xf86-input-synaptics (whether that's a good idea is a different matter and cannot be answered in general. Rule of thumb is to use libinput and resort to synaptics when libinput fails on you or lacks crucial features)
Offline
Pages: 1