bimlas / xfce4-night-mode

XFCE4 GenMon plugin: Switch between light and dark variants of a theme
86 stars 7 forks source link

Handle redshift transition period #8

Open va1entin opened 1 year ago

va1entin commented 1 year ago

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: