1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-19 02:17:44 +01:00

18 lines
513 B
Plaintext
Raw Normal View History

#!/bin/bash
# Toggle touchpad. Requires xf86-input-synaptics.
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
case "$1" in
toggle) (synclient | grep "TouchpadOff.*1" && synclient TouchpadOff=0)>/dev/null && notify-send "TouchPad reactivated." && exit
synclient TouchpadOff=1 && notify-send "TouchPad deactivated." ;;
*) cat << EOF
touchpad: cli script to enable and disable the touchpad.
Allowed options:
toggle Toggle the touchpad on and off
all else Print this message
EOF
esac