IMPORTANT UPDATE
- Manage Redshift using GUI on system tray. [With it you can e.g. suspend Redshift, which is painful without this tool]
- security advice, reread whole article.
Introduction
This guide will help you to quickly configure blue light filter in Qubes OS
Installation
type sudo qubes-dom0-update redshift
in dom0 terminal and confirm installation by y
type sudo qubes-dom0-update redshift-gtk
in dom0 terminal and confirm installation by y
Configuration
Create confiig file - dom0 terminal:
cd .config
-
nano redshift.conf
You will create an empty file in path~/.config/redshift.conf
. Here you have to set values:
your location*, Day/Night Color. Here is explained sample with more functionality.
[redshift]
temp-day=6400
temp-night=3200
adjustment-method=randr
location-provider=manual
[manual]
lat=xx.xxxxx
lon=xx.xxxxx
Where xx.xxxxx are my city latitude and longitude
- Save this configuration file
- Type
redshift
in dom0 to start the program. It will load previously saved configuration.
*Location is needed to know when actually sun sets for you. Without that parameter, redshift may not work. In ordinary Linux system, redshift uses location services like geoclue but i don’t know if it’ll work on qubes as dom0 shouldn’t have internet access and the location provider needs IP to determine your location. You can always check it, read the archwiki.
To find city longitude and latitude you can use geonames.org
Important Note:
I suggest not to give your true location because crackers after this guide has been written may use this file to know your location. Just pick another country that is “close” and has similar latitude.
Automation/Startup
Open dom0 terminal and type redshift-gtk
, in your system tray redshift icon will appear, then click on it and mark checkbox called autostart. Reboot device.
(For these, who configured auto-start from this guide, you have to delete previously created configuration in settings and script - it’s no longer needed, and will interrupt second package)
Documentation
- http://jonls.dk/redshift/
- https://github.com/jonls/redshift
- https://wiki.archlinux.org/index.php/Redshift
Notes, Moderators
It may also work on KDE, so maybe we should change the title to: [HOW-TO] Blue Light Filter
Moderators: could you please replace first post with this update content? I have no rights I’ll try later to go through mentioned Qubes community documentation but believe me that I have lot of work and no time…