summaryrefslogtreecommitdiff
path: root/.config/systemd/user/redshift@.service
diff options
context:
space:
mode:
Diffstat (limited to '.config/systemd/user/redshift@.service')
-rw-r--r--.config/systemd/user/redshift@.service11
1 files changed, 11 insertions, 0 deletions
diff --git a/.config/systemd/user/redshift@.service b/.config/systemd/user/redshift@.service
new file mode 100644
index 0000000..149bb74
--- /dev/null
+++ b/.config/systemd/user/redshift@.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Redshift display colour temperature adjustment
+Documentation=http://jonls.dk/redshift/
+StopWhenUnneeded=true
+
+[Service]
+Type=simple
+Environment=DISPLAY=%I
+ExecStart=/usr/bin/redshift
+ExecStopPost=/usr/bin/redshift -x
+Restart=always