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