added i3 dotfiles

This commit is contained in:
2020-06-11 16:12:10 +02:00
parent 78df635d9e
commit 9d9feafbfd
4 changed files with 221 additions and 0 deletions

8
.config/i3/touchpadToggle.sh Executable file
View 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