summarylogtreecommitdiffstats
path: root/touchpad-toggle
blob: a80ae8cf6e13698f6f90218a5f635197f09d2d2a (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/bash

export LC_ALL=C
TOGGLE=$HOME/.toggle
TOUCHPAD_ID=`xinput list | grep "Touchpad" | sed -n -e 's/^.*id=//p'|cut -f1`
if xinput list $TOUCHPAD_ID | grep -q 'This device is disabled'; then
	xinput enable $TOUCHPAD_ID
else
	xinput disable $TOUCHPAD_ID
fi