Home

Awesome

Redshift Scheduler

redshift-scheduler, as the name implies is a scheduler program for redshift.

Redshift adjusts the color temperature of your screen according to your surroundings (meaning according to the time of day and your location). This may help your eyes hurt less if you are working in front of the screen at night.

However, not everyone has the same day-schedule and likes their screen "turning red" at ~17:00 in the afternoon.


What does it do?

Read the description over at redshift's page for an introduction to the general idea of "screen temperature changing".

You can then determine whether redshift is good enough for you, or you need the advanced control that redshift-scheduler offers.


What problems with redshift does this fix?

redshift-scheduler addresses the following problems with the way redshift works:

  1. No sane control over the screen temperature over the day

    • redshift uses the time of day and your location to "magically" determine a temperature value (which you might not always like)
    • redshift-scheduler gives you a way configure the exact temperature and temperature transitions at any time of the day
  2. No control over how gradually the temperature changes

    • redshift's temperature transitions are somewhat fast (strikingly visible and thus, annoying)
    • redshift-scheduler's temperature transitions can be very gradual (invisible to the user)

How does it work?

redshift-scheduler uses a configuration file that specifies a number of rules. Rules define time periods within the day and their corresponding temperature (or temperature transition).

Generally, rules state something like this:

To learn more, see the sample/default rules file (in the resources/ directory).

redshift-scheduler calculates the temperature at any given moment of the day and periodically invokes redshift to apply it. Therefore, you need redshift installed as well.


Installation

Packages

A package for ArchLinux is available here. Contributions, so that packages for other distros can be made, are always welcome.

Manual Installation

redshift-scheduler is written in Vala and compiles to native code.

Build from source (requires: vala, glib2 and libgee):

./build.sh

The redshift-scheduler executable would appear in the newly created build/ directory. Copy the redshift-scheduler executable file anywhere you'd like.

Copy the default rules file (resources/rules.conf.dist) to ~/.config/redshift-scheduler/rules.conf.

Copy the desktop file (resources/redshift-scheduler.desktop) to ~/.local/share/applications/. This will allow to add the tool as a startup item using e.g. the GNOME Tweak Tool

Make sure you have redshift installed, as redshift-scheduler depends on it.

For distro packagers

A package would:

Dependencies:


Usage

The program is meant to start and run with user privileges. You can set it up to start on desktop environment start-up (with gnome-session-properties, xfce4-session-settings, etc.)

The first time you can run redshift-scheduler from the command-line. During that first start, ~/config/redshift-scheduler/rules.conf will be created, based on the default configuration at /usr/share/redshift-scheduler/rules.conf.dist.

redshift-scheduler runs during the day and controls the screen temperature according to the rules in ~/config/redshift-scheduler/rules.conf.

Rules can be customized to your liking. Rule changes take effect immediately (without needing a program restart).

Ideas/future developments