9 lines
285 B
Bash
9 lines
285 B
Bash
|
#!/usr/bin/env sh
|
||
|
# Get the id by running xinput and look for your touchpad
|
||
|
ID="15"
|
||
|
if [[ $(xinput list-props "$ID" | grep "Device Enabled" | cut -d ':' -f2 | tr -d '[:space:]') = "1" ]]; then
|
||
|
xinput set-prop "$ID" "Device Enabled" 0
|
||
|
else
|
||
|
xinput set-prop "$ID" "Device Enabled" 1
|
||
|
fi
|