From 6c8fbe773e01a8d6d6155a24af78f03e0c0dd1d4 Mon Sep 17 00:00:00 2001 From: bimlas Date: Wed, 15 Apr 2020 07:15:06 +0200 Subject: [PATCH] Fix flickering of Redshift controlled night time MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- xfce4-night-mode-redshift.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xfce4-night-mode-redshift.sh b/xfce4-night-mode-redshift.sh index 32835e8..aa3fd3f 100755 --- a/xfce4-night-mode-redshift.sh +++ b/xfce4-night-mode-redshift.sh @@ -4,7 +4,7 @@ # https://gitlab.com/bimlas/xfce4-night-mode (main repository) # 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' else mode='day'