Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
TouchPad Enable/Disable
#!/bin/sh
# 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
else
echo 'TouchPad: Enabled -> Disable'
xinput set-prop "$myTouchPadDevice" 'Device Enabled' 0
fi
else
echo 'Device Not Found...'
exit 1
fi
exit 0
@HackerGprat

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
You can’t perform that action at this time.