1
0
mirror of https://github.com/tiyn/dotfiles.git synced 2025-03-18 18:07:45 +01:00
dotfiles/.local/bin/tools/touchpad_toggle

8 lines
308 B
Plaintext
Raw Normal View History

2020-05-04 10:53:44 +02:00
#!/bin/bash
2020-04-02 00:06:34 +02:00
2019-09-07 17:42:18 +02:00
# Toggle touchpad. Requires xf86-input-synaptics.
2020-04-02 00:06:34 +02:00
# by lukesmithxyz, checkout github.com/lukesmithxyz/voidrice
2019-09-11 12:11:37 +02:00
(synclient | grep "TouchpadOff.*1" && synclient TouchpadOff=0)>/dev/null && notify-send "TouchPad reactivated." && exit
synclient TouchpadOff=1 && notify-send "TouchPad deactivated."