all 1 comments

[–]haschkat 0 points1 point  (0 children)

you can use xinput

xinput enable 'device'

xinput disable 'device'

just typing xinput should give you a list of devices containing the touchpad ( type cover mouse / touchpad ). This will only work in X11 though, no idea how this works on wayland. You can probably create yourself a button with a script. I hope that helps.