Blue Light Filter in XFCE (Redshift)

Original forum link
https://forum.qubes-os.org/t/540
Original poster
BBro
Editors
BBro, Bearillo, deeplow, enmus, system
Created at
2020-09-12 22:36:40
Last wiki edit
2023-10-30 22:24:38
Revisions
7 revisions
Posts count
30
Likes count
37
Tags
high-quality-post

Introduction

This guide will help you to quickly configure blue light filter in Qubes OS with XFCE desktop environment. Redshift

Installation

type sudo qubes-dom0-update redshift in dom0 terminal and confirm installation by y

!

Remember that installing anything in dom0 is not recommended for security reasons

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. Basic configuration looks like:

    [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

*Location is needed to know when actually sun sets for you. To find city longitude and latitude you can use geonames.org Alternatively, use fixed times in the config file; that way you don't need to come up with a location:

[redshift]
temp-day=6400
temp-night=3200
dawn-time=07:00-08:00
dusk-time=21:30-22:30

Automation/Startup

we need to create script ~/.startupscripts/redshift.sh, open dom0 terminal * mkdir .startupscripts * cd .startupscripts * nano redshift.sh * paste:

    #!/bin/sh
    sleep 2
    redshift

Documentation

If You want to copy this to the Qubes OS documentation, sure 🙂 it'll be faster to find.