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, 6 insertions, 5 deletions
diff --git a/.config/systemd/user/redshift@.service b/.config/systemd/user/redshift@.service
index b4ef3bb..fda41d6 100644
--- a/.config/systemd/user/redshift@.service
+++ b/.config/systemd/user/redshift@.service
@@ -1,11 +1,12 @@
[Unit]
Description=Redshift display colour temperature adjustment on X display %I
Documentation=http://jonls.dk/redshift/
-StopWhenUnneeded=true
+After=X11@%i.target
+Requisite=X11@%i.target
[Service]
-Type=simple
Environment=DISPLAY=%I
-ExecStart=/usr/bin/redshift
-ExecStopPost=/usr/bin/redshift -x
-Restart=always
+
+Type=simple
+ExecStart=/usr/bin/env redshift
+ExecStopPost=/usr/bin/env redshift -x