summaryrefslogtreecommitdiff
path: root/.local/bin/trackpadtoggle
blob: 4bf01aeb50eb026c5fe694a2651daf879bf084e0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# Give this the 1 argument to activate the Trackpad.
# Give this 0 to disable it.

input="$1"

xinput --set-prop 12 "Device Enabled" $input

case "$input" in
	0) notify-send -i "$HOME/.fonts/svg/mouse-pointer.svg" -a Trackpad "Trackpad successfully disabled" ;;
	1) notify-send -i "$HOME/.fonts/svg/mouse-pointer.svg" -a Trackpad "Trackpad successfully enabled" ;;
	*) notify-send -i "$HOME/.fonts/svg/mouse-pointer.svg" -a Trackpad "Error" ;;
esac