Skip to content

Lemntum/redshift-control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Redshift Control

redshift_control.sh is a script to simplify adjusting Redshift values through manual controls, such as through keyboard shortcuts.

Requirements

Install

  1. Copy redshift_control.sh into any place you want to keep it, such as ~/.local/bin/redshift_control.sh.

  2. Give the script executable permissions. (chmod +x redshift_control.sh)

  3. Run redshift_control.sh to generate a config file at ~/.config/redshift_control.conf.

  4. Edit ~/.config/redshift_control.conf with your desired preferences.

  5. Add to system startup: bash -c "$HOME/.local/bin/redshift_control.sh reset" or `bash -c "$HOME/.local/bin/redshift_control.sh set".

    • reset will update Redshift’s settings to apply as if it had not run before. This prevents unusual color jumps after a restart.

    • set will apply the last used temperature and brightness.

  6. Set keyboard shortcuts through your window manager or other application meant for assigning keyboard shortcuts.

Usage

redshift_control.sh [OPTIONS]

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 Options

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.

Example Keyboard Configuration

Super + Delete

redshift_cootrol.sh reset

Super + Home

redshift_cootrol.sh brighter

Super + End

redshift_cootrol.sh darker

Super + PgUp

redshift_cootrol.sh increase

Super + PgDn

redshift_cootrol.sh decrease

Troubleshooting

Script is not running

Ensure the script has executable permissions. (chmod +x redshift_control.sh)

Commands cause an unexpectedly large jump in color/brightness

Make sure to run the script at startup with the reset or set options.

About

Manaully control Redshift with ease.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages