Removed commit history
Signed-off-by: Marko Korhonen <marko.korhonen@reekynet.com>
This commit is contained in:
commit
b1335a3628
199 changed files with 36930 additions and 0 deletions
26
home/Scripts/touchpadtoggle.sh
Executable file
26
home/Scripts/touchpadtoggle.sh
Executable file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/sh
|
||||
|
||||
|
||||
gr="FocalTechPS/2 FocalTech Touchpad"
|
||||
#gr="SynPS/2 Synaptics TouchPad"
|
||||
|
||||
|
||||
#Creates a file if it does not exist to store the 0 or 1 bit to check if touchpad is enabled or disabled. Set to 0 by default
|
||||
if [ ! -f .touchpad ];
|
||||
then
|
||||
echo 0 > .touchpad;
|
||||
|
||||
fi
|
||||
|
||||
if grep -q 0 ".touchpad";
|
||||
then
|
||||
xinput enable "$gr";
|
||||
echo 1 > .touchpad;
|
||||
echo "Touchpad enabled"
|
||||
notify-send "Touchpad enabled"
|
||||
else
|
||||
xinput disable "$gr";
|
||||
echo 0 > .touchpad;
|
||||
echo "Touchpad Disabled"
|
||||
notify-send "Touchpad disabled"
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue