Hi!

If you’re using redshift on Linux, I made a small tool that might be useful. It automatically sets the screen temperature based on the current time, you just draw a curve for how you want it to behave during the day. Then you can just add it to crontab to run every minute or hour.

all 14 comments

sorted by: hot top controversial new old
[–] 11 points 10 months ago (2 children)

Can you make it adjust my CPU temperature too

  • source
  • hideshow 2 child comments
  • [–] 9 points 10 months ago* (2 children)

    I was like "redshift already turns on and off automatically" then it clicked what this does. Pretty nice.

    Do you have plans to make it able to adjust automatically based on sunset? Or interface with something like home assistant to read light sensor data?

  • source
  • hideshow 2 child comments
  • [–] [S] 5 points 10 months ago*

    Haha thanks! I don’t think so, no, at least not with this tool directly. But what you can do is build on top of it, since the points are stored in a config.json. Code that reads a light sensor value could then edit the graph by updating that config.

  • source
  • parent
  • [–] 3 points 10 months ago (2 children)

    Is this similar to the built in KDE night light?

  • source
  • hideshow 2 child comments
  • [–] 3 points 10 months ago (1 child)

    Nice! You should put a LICENSE file in your repo with the MIT license inside (Cargo.toml has the license key, but you really should have a file in your repo too)

  • source
  • hideshow 1 child comment
  • [–] 2 points 10 months ago (2 children)

    Can you adjust separate curves for red, green and blue?

  • source
  • hideshow 2 child comments
  • 1 comment in c/linux@programming.dev view that post
    [–] 4 points 10 months ago* (last edited 10 months ago)

    If your are on Wayland then I recommend gammastep or wlsunset.

  • source