Reddish Shift
A port of Redshift. Translated line by line with the help of C2Rust.
Reddish Shift adjusts the color temperature of your screen according to your surroundings. This may help your eyes hurt less if you are working in front of the screen at night.
Installation
Usage
For a quick start, run:
replace LATITUDE and LONGITUDE with your current geolocation.
To see all available commands:
To see all available options for a given command (e.g. daemon):
Note that using --help instead of -h prints a more detailed help message.
A configuration file can also be used. It should be saved in the following location depending on the platform:
- Linux:
$XDG_CONFIG_HOME/reddish-shift/config.tomlor$HOME/.config/reddish-shift/config.tomlif$XDG_CONFIG_HOMEis not set or/etc/reddish-shift/config.tomlfor system wide configuration - macOS:
$HOME/Library/Application Support/reddish-shift/config.toml - Windows:
%AppData%\reddish-shift\config.toml
Building
Run cargo build --release --all to build these files:
target/release/reddish-shift: the main programtarget/release/man1/: man pagestarget/release/completion/: various shell completion scrips
RoadMap
- Linux
- XRANDR gamma adjustment
- XVidMode gamma adjustment
- DRM gamma adjustment
- reddish-shift-gtk (from redshift-gtk)
- systemd service, apparmor config (from redshift/data)
- Windows
- Win32gdi gamma adjustment
- Support installation with: Appimage, AUR, DEB, PPA, MSI, Choco
- Geoclue2 location provider
- Real screen brightness control (experimental)
- Supporting macOS is not planned currently. Contributions are welcomed.
- Unit testing
- Automatic Conversion from Redshift's config file to
reddish-shift/config.toml
License
This project is licensed under the terms of GNU General Public License v3.0.