summaryrefslogtreecommitdiff
path: root/.config/gammastep
diff options
context:
space:
mode:
authorDaniel Weipert <code@drogueronin.de>2022-02-06 21:56:40 +0100
committerDaniel Weipert <code@drogueronin.de>2023-10-30 09:52:23 +0100
commitbc20466a11ff70f964a6cd97be8930d26d5d4d9c (patch)
treed0f15696f857a2307c6b93c992f9389ca86480ca /.config/gammastep
parent02f0101b669c9364f51fa16fff9914a35c06fa49 (diff)
Add gammastep
Diffstat (limited to '.config/gammastep')
-rw-r--r--.config/gammastep/config.ini69
-rwxr-xr-x.config/gammastep/systemd/gammastep-systemd4
-rw-r--r--.config/gammastep/systemd/gammastep@.service12
3 files changed, 85 insertions, 0 deletions
diff --git a/.config/gammastep/config.ini b/.config/gammastep/config.ini
new file mode 100644
index 0000000..fdcd152
--- /dev/null
+++ b/.config/gammastep/config.ini
@@ -0,0 +1,69 @@
+; Global settings
+[general]
+; Set the day and night screen temperatures
+temp-day=5700
+temp-night=2000
+
+; 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=0.8:0.7:0.8
+;gamma-night=0.6
+
+; 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=0
+lon=0
+
+; 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/.config/gammastep/systemd/gammastep-systemd b/.config/gammastep/systemd/gammastep-systemd
new file mode 100755
index 0000000..6bebc1c
--- /dev/null
+++ b/.config/gammastep/systemd/gammastep-systemd
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+
+WAYLAND_DISPLAY=wayland-1 XDG_RUNTIME_DIR=/run/user/$(id -u) /usr/bin/gammastep
+
diff --git a/.config/gammastep/systemd/gammastep@.service b/.config/gammastep/systemd/gammastep@.service
new file mode 100644
index 0000000..08f0f37
--- /dev/null
+++ b/.config/gammastep/systemd/gammastep@.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=gammastep
+
+[Service]
+User=%i
+ExecStart=gammastep-systemd
+Restart=on-failure
+RestartSec=5
+
+[Install]
+WantedBy=graphical.target
+