Redshift: Difference between revisions

Phobos (talk | contribs)
Updated Page
Phobos (talk | contribs)
mNo edit summary
 
(5 intermediate revisions by the same user not shown)
Line 3: Line 3:
It does this by gradually shifting the color temperature of the display to reduce the amount of blue light towards the night, and increasing the amount of blue light in the morning.
It does this by gradually shifting the color temperature of the display to reduce the amount of blue light towards the night, and increasing the amount of blue light in the morning.


Users may choose to have screen temperature automatically match their lighting based my geographic location, or based on manually set time-frames. Users may also customize day and night color temperatures, adjust the speed of transitions, and more.
Users may choose to have screen temperature automatically match their lighting based on geographic location, or based on manually set time-frames. Users may also customize day and night color temperatures, adjust the speed of transitions, and more.


Redshift is best used on X11 systems as it is unmaintained and does not support Wayland.  
Redshift is best used on X11 systems as it is unmaintained and does not support Wayland.  
Line 33: Line 33:
==== Home Manager ====
==== Home Manager ====


===== Example Usage: =====
===== Example Usage =====
You can find more options in [https://nix-community.github.io/home-manager/options.xhtml#opt-services.redshift.enable Home Manager: services.redshift]. This configuration defines the temperature the display will use at night and day, the schedule and length of the transition, brightness for the display to use, and whether it will use a tray icon. <code>extraOptions</code> defines additional command-line arguments to pass to <code>redshift</code>.
You can find more options in [https://nix-community.github.io/home-manager/options.xhtml#opt-services.redshift.enable Home Manager: services.redshift]. This configuration defines the temperature the display will use at night and day, the schedule and length of the transition, brightness for the display to use, and whether it will use a tray icon. <code>extraOptions</code> defines additional command-line arguments to pass to <code>redshift</code>.
{{File|3=services.redshift = {
{{File|3=services.redshift = {
Line 64: Line 64:
};|name=/etc/nixos/home.nix|lang=nix}}
};|name=/etc/nixos/home.nix|lang=nix}}


===== Location Based =====
===== Location Based Transitions =====
You can choose to use Redshift with location based screen temperature to match when the sun actually sets and rises in your area. Below are examples of those options using [https://gitlab.freedesktop.org/geoclue/geoclue/-/wikis/home Geoclue] and manually set coordinates.
You can choose to use Redshift with location based screen temperature to match when the sun actually sets and rises in your area. Below are examples of those options using [https://gitlab.freedesktop.org/geoclue/geoclue/-/wikis/home Geoclue] and manually set coordinates.


====== Geoclue: ======
====== Geoclue ======
With Geoclue as the location provider, Geoclue provides location using GPS, 3G modems, GeoIP, and WiFi Geolocation. Some of which may require additional setup.{{File|3=services.redshift = {
Geoclue provides location using GPS, 3G modems, GeoIP, and WiFi Geolocation. Some integrations may require additional setup.{{File|3=services.redshift = {
   enable = true;
   enable = true;
   provider = "geoclue2";
   provider = "geoclue2";
Line 75: Line 75:
location.provider = "geoclue2";|name=/etc/nixos/configuration.nix|lang=nix}}
location.provider = "geoclue2";|name=/etc/nixos/configuration.nix|lang=nix}}


====== Coordinates: ======
====== Coordinates ======
{{File|3=services.redshift = {
{{File|3=services.redshift = {
   enable = true;
   enable = true;
Line 92: Line 92:
   longitude = "86.92521";
   longitude = "86.92521";
};|name=/etc/nixos/configuration.nix|lang=nix}}
};|name=/etc/nixos/configuration.nix|lang=nix}}
===== Manual Times: =====
This will have the timings based on time of day.
{{File|3=services.redshift = {
  enable = true;
 
  # Schedule settings
  dawnTime = "6:00-7:45";
  duskTime = "18:35-20:15";
};|name=/etc/nixos/home.nix|lang=nix}}


== Troubleshooting ==
== Troubleshooting ==