Skip to content

Instantly share code, notes, and snippets.

@bcomnes
Created December 9, 2012 07:35
Show Gist options
  • Save bcomnes/4243805 to your computer and use it in GitHub Desktop.
Save bcomnes/4243805 to your computer and use it in GitHub Desktop.
My configuration file for Redshift. Place it in ~/.config/ Drag redshift onto the Startup Applications menu to have it boot on start
; Global settings
[redshift]
temp-day=6500K
temp-night=5000
transition=1
;gamma=0.8:0.7:0.8
gamma=1.000:1.000:1.000
location-provider=geoclue
;location-provider=manual
adjustment-method=vidmode
;brightness=1.0:0.5
; The location provider and adjustment method settings
; are in their own sections.
; This is an example lat long for Portland, OR
[manual]
lat=45.53068
lon=-122.68317
; In this example screen 1 is adjusted by vidmode. Note
; that the numbering starts from 0, so this is actually
; the second screen.
;[vidmode]
;screen=1
@Mario-paul
Copy link

@Mario-paul Feel free to share a link!

Sure! It works automatically using geoclue2, randr adjustment, and 5800k day 2700k night with smooth transition. Screen brightness and gamma adjustments are disabled but can be added by uncommenting the relevant settings. brightness has separate day and night options too as of a recent-ish redshift update.

enjoy!
https://gist.github.com/Mario-paul/b98d6215282478adf6059cde3956b5ca

@Francisco-Castillo
Copy link

Thanks! =)

@RomanusPi
Copy link

Here is another config file:

[redshift]
temp-day=5800 
temp-night=3500
brightness-day=1
brightness-night=0.72
dawn-time=5:00-6:00
dusk-time=19:30-20:00
gamma=0.750:0.750:0.750
transition=1
adjustment-method=randr
location-provider=manual
[manual]
lat=%yourLocation%
lon=%yourLocation%

thx after many attempts it works eventually

@bcomnes
Copy link
Author

bcomnes commented Oct 4, 2024

Should be noted this gist is ancient at this point. Glad there is still useful info though.

@atcbuff
Copy link

atcbuff commented Dec 29, 2024

bcomnes, thank you very much for your post here. It worked like a charm for me after I entered my proper lat and long info. Take care and thanks a million. THanks to you, I will sleep better tonight having been shielded from the short wavelength light this evening! Cheers! Pete.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment