aboutsummaryrefslogtreecommitdiff
path: root/touchpad.sh
blob: 377dc1f9bbd8feb2cb7d01be4c7a6aec21b9498f (plain)
1
2
3
4
5
6
7
#!/bin/sh

# Toggles the touchpad

 device="ETPS/2 Elantech Touchpad"
#device="PS/2 Generic Mouse"
[ "$(xinput --list-props "$device" | grep -e "Device Enabled (.*):.*1")" ] && xinput disable "$device" || xinput enable "$device"