Gammastep: Difference between revisions

From NixOS Wiki
imported>Onny
Initial page
 
imported>Onny
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
== Installation ==
== Installation ==


Using [[Home-manager]] Gammastep can be enabled for a specific user with the following syntax
Using [[Home Manager]] Gammastep can be enabled for a specific user with the following syntax


<syntaxHighlight lang=nix>
<syntaxHighlight lang=nix>
Line 16: Line 16:
</syntaxHighlight>
</syntaxHighlight>


To properly work, Gammastep needs your location to know when the sun will be setting and it gets dark outside, so that it can automatically adjust your screen temperature accordingly. The example above uses the geo position <code>latitude</code> and <code>longitude</code> for that.
To properly work, Gammastep needs your location to know when the sun will be setting and it gets dark outside, so that it can automatically adjust your screen temperature accordingly. Replace <code>myUser</code> with your user name running the graphical session and <code>latitude</code> and <code>longitude</code> with your geographical position.


== See also ==
== See also ==

Latest revision as of 13:18, 17 December 2022

Gammastep is a program that adjusts the color temperature of your screen according to your surroundings. By reducing the amount of blue light emitted it may help to reduce strain on the eyes if working in front of the screen at night.

Installation

Using Home Manager Gammastep can be enabled for a specific user with the following syntax

home-manager.users.myUser = {
  services.gammastep = {
    enable = true;
    provider = "manual";
    latitude = 49.0;
    longitude = 8.4;
  };
};

To properly work, Gammastep needs your location to know when the sun will be setting and it gets dark outside, so that it can automatically adjust your screen temperature accordingly. Replace myUser with your user name running the graphical session and latitude and longitude with your geographical position.

See also

  • Redshift, alternative implementation supporting X-server compositors