Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
TouchPad Enable/Disable
# TouchPad Enable/Disable
# tested on ASRock Multibook G22 + Ubuntu 10.04
myTouchPadDevice='SynPS/2 Synaptics TouchPad'
# How to get the device name
# $ xinput list
if xinput list "$myTouchPadDevice" >/dev/null 2>&1; then
if (xinput list "$myTouchPadDevice" | grep disabled) >/dev/null 2>&1; then
echo 'TouchPad: Disabled -> Enabled'
xinput set-prop "$myTouchPadDevice" 'Device Enabled' 1
echo 'TouchPad: Enabled -> Disable'
xinput set-prop "$myTouchPadDevice" 'Device Enabled' 0
echo 'Device Not Found...'
exit 1
exit 0

This comment has been minimized.

Copy link

@HackerGprat HackerGprat commented Dec 15, 2019

i want gesture like double tap in the top left corner to enable and disable touchpad .. like windwos 10 is there any software or script for it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment