Today I learned how to enable #redshift in #QubesOS !
Redshift is a program that changes the light settings of your display to make the light shift more to the red and less to the blue spectrum, in order to make you sleep better.
This was actually a little bit complicated.
I found this thread helpful:
https://groups.google.com/forum/#!topic/qubes-users/Qi1NqE8raS8
This is a little older and deals with Qubes 3.2, but it also seams to work for version 4.
This line will install Redshift in Dom0 (since it affects the whole display, it has to run in Dom0):
[user@dom0 ~]$ sudo qubes-dom0-update --enablerepo=qubes-dom0-current-testing redshift redshift-gtk:
But Redshift only works with a location, that it can not get from the system, so you will also have to add a config file with a manually set location.
Type (in Dom0 Terminal):
cd ~/.config/
sudo nano redshift.conf
and enter the following in the new file:
[redshift]
location-provider=manual
[manual]
lat=-31.4
lon=-64.5
Change the numbers to whatever works best with your sleep rhythm.
Then just restart Redshift.
Running a program in Dom0 might have some security applications, but I am willing to take those risks for this, because it really works. I notice that the white light in the evening disturbs my sleep.