1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-19 18:17:45 +01:00
dotfiles/.local/bin/tools/dwm/toggletouchpad
2020-04-02 00:06:34 +02:00

8 lines
306 B
Bash
Executable File

#!/bin/sh
# Toggle touchpad. Requires xf86-input-synaptics.
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
(synclient | grep "TouchpadOff.*1" && synclient TouchpadOff=0)>/dev/null && notify-send "TouchPad reactivated." && exit
synclient TouchpadOff=1 && notify-send "TouchPad deactivated."