28
submitted 12 hours ago* (last edited 12 hours ago) by jak0b@lemmy.ml to c/linux@lemmy.ml

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.

top 11 comments
sorted by: hot top controversial new old
[-] eutampieri@feddit.it 1 points 19 minutes 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)

[-] ryannathans@aussie.zone 7 points 9 hours ago

Can you make it adjust my CPU temperature too

[-] jak0b@lemmy.ml 5 points 9 hours ago

Just a little bit maybe XD

[-] db2@lemmy.world 5 points 10 hours ago* (last edited 10 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.ml 5 points 10 hours ago* (last edited 10 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.

[-] oeuf@slrpnk.net 3 points 11 hours ago

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

[-] jak0b@lemmy.ml 5 points 11 hours ago

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

[-] oeuf@slrpnk.net 1 points 1 hour 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!

[-] AmbiguousProps@lemmy.today 3 points 12 hours ago

Is this similar to the built in KDE night light?

[-] jak0b@lemmy.ml 8 points 12 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.

[-] antrosapien@lemmy.ml 1 points 10 hours ago

That's cool

this post was submitted on 17 Dec 2025
28 points (96.7% liked)

Linux

57274 readers
728 users here now

From Wikipedia, the free encyclopedia

Linux is a family of open source Unix-like operating systems based on the Linux kernel, an operating system kernel first released on September 17, 1991 by Linus Torvalds. Linux is typically packaged in a Linux distribution (or distro for short).

Distributions include the Linux kernel and supporting system software and libraries, many of which are provided by the GNU Project. Many Linux distributions use the word "Linux" in their name, but the Free Software Foundation uses the name GNU/Linux to emphasize the importance of GNU software, causing some controversy.

Rules

Related Communities

Community icon by Alpár-Etele Méder, licensed under CC BY 3.0

founded 6 years ago
MODERATORS