Redshift offers a third period Transition which is active while transitioning between Day and Night.
xfce4-night-mode-redshift.sh currently does not recognize this and moves to / stays in day mode because grep 'Period: Night' does not match on Period: Transition.
With this PR the script handles all three periods and allows the user to define which mode to use during transition periods with a variable TRANSITION_MODE. My use case is switching to night mode during the transition period at sunset so I set the default to night.
Thank you for the great work! It has really improved my XFCE experience :tada:
Redshift offers a third period
Transition
which is active while transitioning betweenDay
andNight
.xfce4-night-mode-redshift.sh
currently does not recognize this and moves to / stays inday
mode becausegrep 'Period: Night'
does not match onPeriod: Transition
.With this PR the script handles all three periods and allows the user to define which mode to use during transition periods with a variable
TRANSITION_MODE
. My use case is switching to night mode during the transition period at sunset so I set the default tonight
.Thank you for the great work! It has really improved my XFCE experience :tada: