mirror of
https://github.com/tiyn/dotfiles.git
synced 2025-03-18 18:07:45 +01:00
sxhkd: added touchpad toggling and improved the script
This commit is contained in:
parent
ead803572f
commit
aa9b0a14a9
@ -49,6 +49,9 @@ super + Return
|
|||||||
Print
|
Print
|
||||||
screenshot
|
screenshot
|
||||||
|
|
||||||
|
super + space
|
||||||
|
touchpad toggle
|
||||||
|
|
||||||
super + shift + space
|
super + shift + space
|
||||||
dunstctl close-all
|
dunstctl close-all
|
||||||
|
|
||||||
|
@ -4,13 +4,17 @@
|
|||||||
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
toggle) (synclient | grep "TouchpadOff.*1" && synclient TouchpadOff=0)>/dev/null && notify-send "TouchPad reactivated." && exit
|
on) synclient TouchpadOff=0 && notify-send "TouchPad activated." ;;
|
||||||
synclient TouchpadOff=1 && notify-send "TouchPad deactivated." ;;
|
off) synclient TouchpadOff=1 && notify-send "TouchPad deactivated." ;;
|
||||||
|
toggle) (synclient | grep "TouchpadOff.*1") && touchpad on && exit
|
||||||
|
touchpad off ;;
|
||||||
*) cat << EOF
|
*) cat << EOF
|
||||||
touchpad: cli script to enable and disable the touchpad.
|
touchpad: cli script to enable and disable the touchpad.
|
||||||
|
|
||||||
Allowed options:
|
Allowed options:
|
||||||
toggle Toggle the touchpad on and off
|
on Turn touchpad on
|
||||||
|
off Turn touchpad off
|
||||||
|
toggle Toggle the touchpad on or off
|
||||||
all else Print this message
|
all else Print this message
|
||||||
|
|
||||||
EOF
|
EOF
|
||||||
|
Loading…
x
Reference in New Issue
Block a user