dotfiles-remastered/.config/i3/touchpadToggle.sh
2020-06-11 16:12:10 +02:00

9 lines
285 B
Bash
Executable File

#!/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