Last active
November 8, 2019 07:17
-
-
Save codcodog/8c5d31ef68af950adcc2eb7c289cbf39 to your computer and use it in GitHub Desktop.
Dell 13 touchpad enable & disable.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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