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

# Toggles the touchpad

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