redshift_control.sh is a script to simplify adjusting Redshift values through manual controls, such as through keyboard shortcuts.
-
Bash (or equivalent)
-
bc
-
Copy
redshift_control.shinto any place you want to keep it, such as~/.local/bin/redshift_control.sh. -
Give the script executable permissions. (
chmod +x redshift_control.sh) -
Run
redshift_control.shto generate a config file at~/.config/redshift_control.conf. -
Edit
~/.config/redshift_control.confwith your desired preferences. -
Add to system startup:
bash -c "$HOME/.local/bin/redshift_control.sh reset"or`bash -c "$HOME/.local/bin/redshift_control.sh set".-
resetwill update Redshift’s settings to apply as if it had not run before. This prevents unusual color jumps after a restart. -
setwill apply the last used temperature and brightness.
-
-
Set keyboard shortcuts through your window manager or other application meant for assigning keyboard shortcuts.
-
etc.
redshift_control.sh [OPTIONS]
- increase
-
Increases color temperature.
- decrease
-
Decreases color temperature.
- brighter
-
Increases screen brightness.
- darker
-
Decreases screen brightness.
- max
-
Set redshift using the max_brightness and max_temp values.
- min
-
Set redshift using the min_brightness and min_temp values.
- set
-
Set redshift using the last set temperature and brightness settings in the config file.
- reset
-
Reset brightness and color temperature.
- help
-
Show help.
Config file is located at $HOME/.config/redshift_control.conf.
- step_temp
-
Size of step to take when altering current temperature value. Default 500.
- max_temp
-
Maximum color temperature value allowed. Default 6500.
- min_temp
-
Minimum color temperature value allowed. Default 1500.
- step_brightness
-
Size of step to take when altering current brightness value. Default 0.1.
- max_brightness
-
Maximum brightness value allowed. Cannot be higher than 1. Default 1.
- min_brightness
-
Minimum brightness value allowed. Default 0.3.