Installing redshift in Qubes OS to soothe your eyes at night

Original forum link
https://forum.qubes-os.org/t/13908
Original poster
alzer89
Editors
deeplow
Created at
2022-09-28 03:48:09
Last wiki edit
2023-09-07 05:44:09
Revisions
1 revision
Posts count
3
Likes count
4

Anyone who's used a computer screen at night will tell you that blue light hurts your eyes.

Most OSes have a "Night Mode" that will lower the intensity of blue light that your display emits, reducing eye strain at night. Unfortunately, the standard Qubes OS install does not contain anything that will do this.

The standard Fedora repos include a package called redshift that will accomplish this.

  1. In a dom0 terminal, type:
    sudo qubes-dom0-update redshift
    
  2. Get your current latitude and longitude coordinates
  3. If you're concerned about privacy, you can be Santa Claus if you want: 90.0000° N, 135.0000° W (The North Pole)
  4. Bear in mind that if you do this, your screen will redshift for six months, and then blueshift for six months 😛
  5. The redshift command seems to require a value at -l LAT:LON in order to be successful, but you can manually toggle colour-shifting as well.

  6. Complete one of the following steps:

  7. For automatic colour-shifting based on your system clock:

    redshift -l $latitude:$longitude &
    

  8. For manual "oneshot" colour-shifting:

    redshift -l $latitude:$longitude -O $colour_temperature
    

  9. To see what other options redshift can do:

    redshift -h
    


I will write a way to have systemd activate this automatically in a future post.