Re-Organize Dotfiles into Separate Stow Packages
This commit is contained in:
11
trackpad/.scripts/trackpad.sh
Executable file
11
trackpad/.scripts/trackpad.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/usr/bin/env bash
|
||||
trackpad_id=13
|
||||
|
||||
if xinput list-props $trackpad_id | grep "Device Enabled (.*):.*1" >/dev/null
|
||||
then
|
||||
xinput disable $trackpad_id
|
||||
notify-send -u low -i mouse "Trackpad disabled"
|
||||
else
|
||||
xinput enable $trackpad_id
|
||||
notify-send -u low -i mouse "Trackpad enabled"
|
||||
fi
|
Reference in New Issue
Block a user