summaryrefslogtreecommitdiff
path: root/src/scripts/sTouchpad
blob: 7e2dbb5b3b55523364ecf30bba91d33f0d1cfe79 (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