blob: 87c0000f4ca8948025f96f3dfe6f55e0518becf4 (
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)" && nsend Touchpad Disabled
else
touch $file
xinput enable "$(xinput list --name-only | grep Touchpad)" && nsend Touchpad Enabled
fi
|