A tool to automatically adjust screen temperature based on a custom curve.
Autoredshift allows you to define a custom temperature curve throughout the day and automatically adjusts your screen's color temperature using redshift. It includes a graphical configuration tool to easily edit your curve.
- Linux (tested on X11)
- Redshift: Ensure
redshiftis installed and in your PATH.sudo apt install redshift # Debian/Ubuntu sudo pacman -S redshift # Arch Linux sudo dnf install redshift # Fedora
- Rust/Cargo: Only if you build the project yourself.
- Clone the repository or download the source.
- Install using Cargo:
This will install the
cargo install --path .autoredshiftbinary to your Cargo bin directory (usually~/.cargo/bin).
Note: The automated release workflow currently produces a single
x86_64binary.
- Download the latest
autoredshiftasset from the Releases page. - Make it executable (and optionally run it in-place):
chmod +x autoredshift ./autoredshift --version
- Move it somewhere on your
PATH:mkdir -p ~/.local/bin mv autoredshift ~/.local/bin/
- Ensure
~/.local/bin(or wherever you placed it) is on yourPATH, reload your shell, and invoke the tool:autoredshift --version
To calculate the current target temperature and apply it immediately:
autoredshiftTo open the graphical configuration editor:
autoredshift --config- Double-click to add a point.
- Right-click to remove a point.
- Drag points to adjust the curve.
- Scroll to zoom.
To have Autoredshift run automatically every minute, you can add a cron job.
-
Open your crontab:
crontab -e
-
Add the following line (replace
<user>with your username and verify paths):* * * * * DISPLAY=:0 XAUTHORITY=/run/lightdm/<user>/xauthority /home/<user>/.cargo/bin/autoredshift >> /home/<user>/autoredshift.log 2>&1
Note:
DISPLAY=:0is standard for most X11 setups.XAUTHORITYpath may vary depending on your display manager (e.g.,/home/<user>/.Xauthorityor/run/user/<uid>/gdm/Xauthority). Checkecho $XAUTHORITYin your terminal.- Ensure the path to
autoredshiftmatches wherecargo installplaced it.
