touchpad control

This commit is contained in:
rob committed 2018-12-05 10:26:02 +01:00
1 parent 215adfe420
commit 5bde99c85b
3 files changed
+16 -2

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ if [ $uservalue ]
then then
echo "xrandr --output HDMI-1 --brightness 0.$uservalue" echo "xrandr --output HDMI-1 --brightness 0.$uservalue"
xrandr --output HDMI-1 --brightness "0.$uservalue" xrandr --output HDMI-1 --brightness "0.$uservalue"
xrandr --output LVDS-1 --brightness "0.$uservalue"
else else
#Erst den aktuellen wert ermitteln #Erst den aktuellen wert ermitteln
xrandr=`xrandr --verbose | grep Brightness: | tr '\n' ' ' | tr -d ' '| tr -d '\t'` xrandr=`xrandr --verbose | grep Brightness: | tr '\n' ' ' | tr -d ' '| tr -d '\t'`
+2 -2
View File
@@ -7,11 +7,11 @@ if [ -f $redshiftflag ]
then then
echo redshift -O 5700 echo redshift -O 5700
redshift -O 5700 redshift -O 5700
xrandr --output LVDS-1 --brightness 1 # xrandr --output LVDS-1 --brightness 1
rm $redshiftflag rm $redshiftflag
else else
echo redshift -O 3600 echo redshift -O 3600
redshift -O 3600 redshift -O 3600
# xrandr --output LVDS-1 --brightness 1
echo "diese datei ist da um zu zeigen ob der bildschirm schon rot ist" > "$redshiftflag" echo "diese datei ist da um zu zeigen ob der bildschirm schon rot ist" > "$redshiftflag"
fi fi
Executable
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
uservalue=$1
trackpad_device_id=16
if [ $uservalue ]
then
echo "xinput --enable $trackpad_device_id"
xinput --enable $trackpad_device_id
else
echo "xinput --disable $trackpad_device_id"
xinput --disable $trackpad_device_id
fi