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.

  • eutampieri@feddit.it
    link
    fedilink
    arrow-up
    1
    ·
    2 hours ago

    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)

  • db2@lemmy.world
    link
    fedilink
    arrow-up
    5
    ·
    13 hours ago

    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?

    • jak0b@lemmy.mlOP
      link
      fedilink
      arrow-up
      5
      ·
      13 hours 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.

    • jak0b@lemmy.mlOP
      link
      fedilink
      arrow-up
      5
      ·
      13 hours ago

      Nope, currently just temperature. But it can definitely be added, since redshift supports it.

      • Da Oeuf@slrpnk.net
        link
        fedilink
        arrow-up
        1
        ·
        3 hours ago

        That would be a powerful feature and a very user-friendly way of creating what are essentially custom monitor profiles. It has my vote!

    • jak0b@lemmy.mlOP
      link
      fedilink
      arrow-up
      8
      ·
      14 hours ago

      Yes very similar, but I dont think you can have more than 2 points there? Here you can set as many points as you want and it calculates a Catmull-Rom curve.