dotfiles-remastered/.config/i3/touchpadToggle.sh

9 lines
285 B
Bash
Raw Normal View History

2020-06-11 14:12:10 +00:00
#!/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