touchpad control
This commit is contained in:
1 parent
215adfe420
commit
5bde99c85b
3 files changed
+16
-2
No files matched your search
@@ -9,6 +9,7 @@ if [ $uservalue ]
|
||||
then
|
||||
echo "xrandr --output HDMI-1 --brightness 0.$uservalue"
|
||||
xrandr --output HDMI-1 --brightness "0.$uservalue"
|
||||
xrandr --output LVDS-1 --brightness "0.$uservalue"
|
||||
else
|
||||
#Erst den aktuellen wert ermitteln
|
||||
xrandr=`xrandr --verbose | grep Brightness: | tr '\n' ' ' | tr -d ' '| tr -d '\t'`
|
||||
|
||||
+2
-2
@@ -7,11 +7,11 @@ if [ -f $redshiftflag ]
|
||||
then
|
||||
echo redshift -O 5700
|
||||
redshift -O 5700
|
||||
xrandr --output LVDS-1 --brightness 1
|
||||
# xrandr --output LVDS-1 --brightness 1
|
||||
rm $redshiftflag
|
||||
else
|
||||
echo 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"
|
||||
fi
|
||||
Executable
+13
@@ -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
|
||||
Reference in new issue
Block a user