diff --git a/home-profiles/desktop/.config/redshift/redshift.conf b/home-profiles/desktop/.config/redshift/redshift.conf new file mode 100644 index 0000000000000000000000000000000000000000..ff111d698045b16697c90fcf8cc763e52a00c015 --- /dev/null +++ b/home-profiles/desktop/.config/redshift/redshift.conf @@ -0,0 +1,71 @@ +; Global settings for redshift +[redshift] +; Set the day and night screen temperatures +; my old default: temp-day=5700 +temp-day=5700 +temp-night=3700 + +; Disable the smooth fade between temperatures when Redshift starts and stops. +; 0 will cause an immediate change between screen temperatures. +; 1 will gradually apply the new screen temperature over a couple of seconds. +fade=1 + +; Solar elevation thresholds. +; By default, Redshift will use the current elevation of the sun to determine +; whether it is daytime, night or in transition (dawn/dusk). When the sun is +; above the degrees specified with elevation-high it is considered daytime and +; below elevation-low it is considered night. +;elevation-high=3 +;elevation-low=-6 + +; Custom dawn/dusk intervals. +; Instead of using the solar elevation, the time intervals of dawn and dusk +; can be specified manually. The times must be specified as HH:MM in 24-hour +; format. +dawn-time=7:00-8:00 +dusk-time=22:00-23:45 + +; Set the screen brightness. Default is 1.0. +;brightness=0.9 +; It is also possible to use different settings for day and night +; since version 1.8. +;brightness-day=0.7 +;brightness-night=0.4 +; Set the screen gamma (for all colors, or each color channel +; individually) +;gamma=0.8 +;gamma=0.8:0.7:0.8 +; This can also be set individually for day and night since +; version 1.10. +;gamma-day=0.8:0.7:0.8 +;gamma-night=0.6 + +; Set the location-provider: 'geoclue2', 'manual' +; type 'redshift -l list' to see possible values. +; The location provider settings are in a different section. +location-provider=manual + +; Set the adjustment-method: 'randr', 'vidmode' +; type 'redshift -m list' to see all possible values. +; 'randr' is the preferred method, 'vidmode' is an older API. +; but works in some cases when 'randr' does not. +; The adjustment method settings are in a different section. +adjustment-method=wayland + +; Configuration of the location-provider: +; type 'redshift -l PROVIDER:help' to see the settings. +; ex: 'redshift -l manual:help' +; Keep in mind that longitudes west of Greenwich (e.g. the Americas) +; are negative numbers. +[manual] +lat=52.52 +lon=13.40 + +; Configuration of the adjustment-method +; type 'redshift -m METHOD:help' to see the settings. +; ex: 'redshift -m randr:help' +; In this example, randr is configured to adjust only screen 0. +; Note that the numbering starts from 0, so this is actually the first screen. +; If this option is not specified, Redshift will try to adjust _all_ screens. +[randr] +screen=0 diff --git a/home-profiles/desktop/.config/sway/config b/home-profiles/desktop/.config/sway/config index 37a560c9a0db74c9775c7320e7c81b5bd9bad9cf..e81e35c500b9da110237fef7dd9a54f90cba159d 100644 --- a/home-profiles/desktop/.config/sway/config +++ b/home-profiles/desktop/.config/sway/config @@ -65,7 +65,7 @@ output * bg $wallpaper fill exec mako exec CM_SELECTIONS=clipboard clipmenud #exec nm-applet --indicator -exec redshift -m wayland +exec redshift # Fix XWayland DPI exec xrdb -load ~/.Xresources diff --git a/nixos/layers/desktop.nix b/nixos/layers/desktop.nix index 13263ee09a3790cef800c0ae333f25ebd1bc8baa..c412bce9e9d2d01b8d8e84495ac5f2158e46a179 100644 --- a/nixos/layers/desktop.nix +++ b/nixos/layers/desktop.nix @@ -40,6 +40,7 @@ in rofi qt5.qtwayland acpilight + redshift-wlr # qbar block dependencies python3