Use Redshift's "Night" period instead of "Daytime"
Daytime -> Transition -> Night
This commit is contained in:
parent
5499170bad
commit
343f208cd8
1 changed files with 6 additions and 6 deletions
|
|
@ -4,14 +4,14 @@
|
||||||
# https://gitlab.com/bimlas/xfce4-night-mode (main repository)
|
# https://gitlab.com/bimlas/xfce4-night-mode (main repository)
|
||||||
# https://github.com/bimlas/xfce4-night-mode (mirror, please star if you like the plugin)
|
# https://github.com/bimlas/xfce4-night-mode (mirror, please star if you like the plugin)
|
||||||
|
|
||||||
if ( LC_ALL='C' redshift -vo 2> /dev/null | grep "Period: Daytime" > /dev/null ); then
|
if ( LC_ALL='C' redshift -vo 2> /dev/null | grep 'Period: Night' > /dev/null ); then
|
||||||
mode='day'
|
|
||||||
else
|
|
||||||
mode='night'
|
mode='night'
|
||||||
|
else
|
||||||
|
mode='day'
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"$(dirname "$0")/xfce4-night-mode.sh" $mode | sed '/<tool>/,/<\/tool>/ d'
|
"$(dirname "$0")/xfce4-night-mode.sh" "$mode" | sed '/<tool>/,/<\/tool>/ d'
|
||||||
echo "<tool>
|
echo '<tool>
|
||||||
Night mode defined by RedShift
|
Night mode defined by RedShift
|
||||||
Click to toggle mode for a while
|
Click to toggle mode for a while
|
||||||
</tool>"
|
</tool>'
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue