Files
lokale-scripte/red_the_screen.sh
T
2018-12-05 10:26:02 +01:00

18 lines
496 B
Bash
Executable File

#!/bin/sh
# aktuell wirds zwar nicht mehr dunkler bei jedem ausführen, dafür ändert es aber auch nicht den Rotanteil
redshiftflag="/home/rob/code/lokale-scripte/redshift_on"
if [ -f $redshiftflag ]
then
echo redshift -O 5700
redshift -O 5700
# 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