added i3 dotfiles
This commit is contained in:
8
.config/i3/touchpadToggle.sh
Executable file
8
.config/i3/touchpadToggle.sh
Executable file
@@ -0,0 +1,8 @@
|
||||
#!/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
|
||||
Reference in New Issue
Block a user