Redshift is a free utility program for Linux that allows you to adjust the computer screen’s color temperature.

You’ll want to use the software to reduce eye strain, especially at night. The bluish color of the computer display is hard on your eyes.
Redshift colors the screen in a warmer, reddish color.

Minimal Installation of RedShift and Setup (Arch Linux)


Using the Arch package manager with yay:

yay -S redshift-minimal xorg-xbacklight


Go to and search for your location. Write down latitude and longitude.

Create ~/.config/redshift/redshift.conf with the following content:

; Global settings for redshift
; Set the day and night screen temperatures

; Disable the smooth fade between temperatures when Redshift starts and stops.
; 0 will cause an immediate change between screen temperatures.
; 1 will gradually apply the new screen temperature over a couple of seconds.

; Solar elevation thresholds.
; By default, Redshift will use the current elevation of the sun to determine
; whether it is daytime, night or in transition (dawn/dusk). When the sun is
; above the degrees specified with elevation-high it is considered daytime and
; below elevation-low it is considered night.

; Custom dawn/dusk intervals.
; Instead of using the solar elevation, the time intervals of dawn and dusk
; can be specified manually. The times must be specified as HH:MM in 24-hour
; format.

; Set the screen brightness. Default is 1.0.
; It is also possible to use different settings for day and night
; since version 1.8.
; Set the screen gamma (for all colors, or each color channel
; individually)
; This can also be set individually for day and night since
; version 1.10.

; Set the location-provider: 'geoclue2', 'manual'
; type 'redshift -l list' to see possible values.
; The location provider settings are in a different section.

; Set the adjustment-method: 'randr', 'vidmode'
; type 'redshift -m list' to see all possible values.
; 'randr' is the preferred method, 'vidmode' is an older API.
; but works in some cases when 'randr' does not.
; The adjustment method settings are in a different section.

; Configuration of the location-provider:
; type 'redshift -l PROVIDER:help' to see the settings.
; ex: 'redshift -l manual:help'
; Keep in mind that longitudes west of Greenwich (e.g. the Americas)
; are negative numbers.
lat=<insert your city's latitude>
lon=<insert your city's longitude>

; Configuration of the adjustment-method
; type 'redshift -m METHOD:help' to see the settings.
; ex: 'redshift -m randr:help'
; In this example, randr is configured to adjust only screen 0.
; Note that the numbering starts from 0, so this is actually the first screen.
; If this option is not specified, Redshift will try to adjust _all_ screens.

Adjust the lat and lon entries. Provide longitudes in the western hemisphere (e.g., the Americas) as a negative number, see FAQ.

Create a hook script to use real screen brightness. Create the file ~/.config/redshift/hooks/


# Set brightness via xbrightness when redshift status changes

# Set brightness values for each status.
# Range from 1 to 100 is valid
# Set fade time for changes to one minute

if [ "$1" = period-changed ]; then
	case $3 in
			xbacklight -set $brightness_night -time $fade_time
			xbacklight -set $brightness_transition -time $fade_time
			xbacklight -set $brightness_day -time $fade_time

Make the script executable:

chmod +x ~/.config/redshift/hooks/

Enable the systemd user script:

systemctl --user enable redshift.service --now


Further Reading