Sample Header Ad - 728x90

Command to toggle on/off touchpad in Xfce

3 votes
2 answers
2526 views
I have found similar questions: How can I set a keyboard shortcut to toggle on/off e.g. the trackpad? and How to set a toggle on linux (True or False) bash command? But these are gnome-based, their solutions use gsettings commands, which don't work in Xfce (like org.gnome.settings-daemon.peripherals.touchpad touchpad-enabled). The commands I use in Xfce are synclient touchpadoff=1 and synclient touchpadoff=0. How to adjust those in a command that would opertate like an on/off toggle?
Asked by cipricus (1779 rep)
Jan 5, 2021, 11:40 AM
Last activity: May 15, 2022, 01:22 AM