summaryrefslogtreecommitdiff
path: root/src/scripts/sTouchpad
blob: b34abd86e6fe9cd5e9293b7c208e201879c24514 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

# Wrapper script for activating and deactivating touchpad

[ -d ~/.cache ] && mkdir ~/.cache || { echo "Couldn't create ~/.cache " && exit 2; }

file=~/.cache/touchpad_on

if [ -f $file ];then
	rm $file
	xinput disable "$(xinput list --name-only | grep Touchpad)"
else
	touch $file 
	xinput enable "$(xinput list --name-only | grep Touchpad)"
fi