Skip to content

Instantly share code, notes, and snippets.

@codcodog
Last active November 8, 2019 07:17
Show Gist options
  • Save codcodog/8c5d31ef68af950adcc2eb7c289cbf39 to your computer and use it in GitHub Desktop.
Save codcodog/8c5d31ef68af950adcc2eb7c289cbf39 to your computer and use it in GitHub Desktop.
Dell 13 touchpad enable & disable.
#!/bin/bash
#
# XPS13 touchpad enable/disable.
ID=$(xinput list | grep DLL.*Touchpad | awk '{print $6}' | awk -F'=' '{print $2}')
STATE=$(xinput list-props $ID | grep 'Device Enabled' | awk '{print $4}')
if [ $STATE -eq 1 ]; then
xinput disable $ID
else
xinput enable $ID
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment