diff --git a/files/.config/gammastep/config.ini b/files/.config/gammastep/config.ini new file mode 100644 index 0000000..40424a4 --- /dev/null +++ b/files/.config/gammastep/config.ini @@ -0,0 +1,68 @@ +; Global settings +[general] +; Set the day and night screen temperatures +temp-day=5000 +temp-night=3000 + +; 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=6:00-7:45 +;dusk-time=18:35-20:15 + +; 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=1.0 +gamma-night=0.8 + +; Set the location-provider: 'geoclue2', 'manual'. +; The location provider settings are in a different section. +location-provider=manual + +; Set the adjustment-method: 'randr', 'vidmode', 'drm', 'wayland'. +; 'randr' is the preferred X11 method, 'vidmode' is an older API +; that 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 'gammastep -l PROVIDER:help' to see the settings. +; ex: 'gammastep -l manual:help' +; Keep in mind that longitudes west of Greenwich (e.g. the Americas) +; are negative numbers. +[manual] +lat=45.51 +lon=-73.59 + +; Configuration of the adjustment-method +; type 'gammastep -m METHOD:help' to see the settings. +; ex: 'gammastep -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/files/.config/redshift.conf b/files/.config/redshift.conf deleted file mode 100644 index 2914314..0000000 --- a/files/.config/redshift.conf +++ /dev/null @@ -1,56 +0,0 @@ -; Global settings for redshift -[redshift] -; Set the day and night screen temperatures (Neutral is 6500K) -temp-day=5000 -temp-night=3000 - -; Enable/Disable a smooth transition between day and night -; 0 will cause a direct change from day to night screen temperature. -; 1 will gradually increase or decrease the screen temperature. -transition=1 - -; 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=1.0 -;brightness-night=0.9 -; 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' or '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=randr - -; 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=45.51 -lon=-73.59 - -; 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 screen 1. -; Note that the numbering starts from 0, so this is actually the -; second screen. If this option is not specified, Redshift will try -; to adjust _all_ screens. -[randr] -;screen=1 diff --git a/files/.config/systemd/user/gammastep.service b/files/.config/systemd/user/gammastep.service new file mode 100644 index 0000000..0057d2f --- /dev/null +++ b/files/.config/systemd/user/gammastep.service @@ -0,0 +1,12 @@ +[Unit] +Description=Set color temperature of display according to time of day. +Documentation=https://gitlab.com/chinstrap/gammastep +Requires=sway-session.target +After=sway-session.target + +[Service] +ExecStart=/usr/bin/gammastep +Restart=always + +[Install] +WantedBy=sway-session.target diff --git a/files/.config/systemd/user/redshift.service b/files/.config/systemd/user/redshift.service deleted file mode 100644 index 3fe439c..0000000 --- a/files/.config/systemd/user/redshift.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=Redshift display colour temperature adjustment -Documentation=http://jonls.dk/redshift/ -Requires=sway-session.target -After=sway-session.target - -[Service] -ExecStart=/usr/bin/redshift -m wayland -Restart=always - -[Install] -WantedBy=sway-session.target