Fix flickering of Redshift controlled night time

When we queried Redshift for the current time of day, the screen became
even redder for a short time because it wasn’t using the right switches.
This commit is contained in:
bimlas 2020-04-15 07:15:06 +02:00
parent 343f208cd8
commit 6c8fbe773e

View file

@ -4,7 +4,7 @@
# 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: Night' > /dev/null ); then if ( LC_ALL='C' redshift -p 2> /dev/null | grep 'Period: Night' > /dev/null ); then
mode='night' mode='night'
else else
mode='day' mode='day'