Toggle day and night modes in redshift
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] I want to be able to toggle between day and night mode.
Describe the solution you'd like A clear and concise description of what you want to happen.
!/bin/bash
current_temp=$(_code here that returns current temperature from redshift_)
echo "Current temperature: $current_temp"
if [[ $current_temp -eq 1000 ]]; then
redshift -P -O 6500
notify-send "Redshift: Daytime mode (6500K)"
else
redshift -P -O 1000
notify-send "Redshift: Nighttime mode (1000K)"
fi
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered. None, the way described should work fine
Additional context Add any other context or screenshots about the feature request here.
I was trying to write the exact same script and found that redshift -p shows among other things a screen temperature, but it doesn't seem to be the current value.
ya it would be a great feature to add if possible
On Mon, Aug 14, 2023, 2:36 PM yds12 @.***> wrote:
I was trying to write the exact same script and found that redshift -p shows among other things a screen temperature, but it doesn't seem to be the current value.
— Reply to this email directly, view it on GitHub https://github.com/jonls/redshift/issues/885#issuecomment-1677872029, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARTB5TJMRSM4IYKIAH3NM5LXVJV33ANCNFSM6AAAAAA2SGRIWA . You are receiving this because you authored the thread.Message ID: @.***>
I found a workaround on Linux: you can do xrandr --current --verbose | grep Gamma to get the gamma settings of the monitor, it is affected by redshift.
thanks!
On Mon, Aug 14, 2023, 3:42 PM yds12 @.***> wrote:
I found a workaround on Linux: you can do xrandr --current --verbose | grep Gamma to get the gamma settings of the monitor, it is affected by redshift.
— Reply to this email directly, view it on GitHub https://github.com/jonls/redshift/issues/885#issuecomment-1677956389, or unsubscribe https://github.com/notifications/unsubscribe-auth/ARTB5TLB7DPWEXVUAOYEWOTXVJ5TNANCNFSM6AAAAAA2SGRIWA . You are receiving this because you authored the thread.Message ID: @.***>