aboutsummaryrefslogtreecommitdiffstats
path: root/user/compton.service
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2017-01-10 18:34:41 +0100
committerDavid Runge <dave@sleepmap.de>2017-01-10 18:34:41 +0100
commite6df431d259bc476c968301f34e6e39c5bfe1ad2 (patch)
tree5771b22ed85411ff66d19d7f2cc525dab9d047dc /user/compton.service
parentf29d2b7fb9596a924cbc835b84b99d05bd6a806c (diff)
parent34d31c932f00a3dd5c9aeadaef5c5eae297321f9 (diff)
downloaduenv-0.8.3.tar.gz
uenv-0.8.3.tar.bz2
uenv-0.8.3.tar.xz
uenv-0.8.3.zip
Merge branch 'master' of sleepmap.de:software/uenv0.8.3
* 'master' of sleepmap.de:software/uenv: README.rst: Removing gpg-agent.service specific information. user/gpg-agent.service: Removing gpg-agent.service, as it was added to the repository package gnupg. user/jack@.service: Leaving space between flags and parameters. user/conky@.service: Moving to .conf files for conky configuration. user/jack@.service: Removing named server settings (they conflict with many default clients. NEWS: Adding information for version 0.7.0. README.rst: Removing update-mirrorlist system services (project seems dead and there is now update-pacman-mirrorlist: https://aur.archlinux.org/packages/update-pacman-mirrorlist/). README.rst: Adding information regarding the conky@ user service. user/conky@.service: Adding a conky@ user service, that can be used to start conky scripts by configuration file name. user/compton.service: Adding a check if X is running using xset. Raising RestartSec to 3s. Making service anti-dependant on realtime kernel.
Diffstat (limited to 'user/compton.service')
-rw-r--r--user/compton.service5
1 files changed, 4 insertions, 1 deletions
diff --git a/user/compton.service b/user/compton.service
index 8b313b5..a8ceb7e 100644
--- a/user/compton.service
+++ b/user/compton.service
@@ -2,12 +2,15 @@
Description=Compton X Compositor
After=display-manager.service local-fs.target
ConditionFileIsExecutable=/usr/bin/compton
-ConditionFileNotEmpty=/sys/kernel/realtime
+ConditionFileIsExecutable=/usr/bin/xset
+ConditionFileNotEmpty=!/sys/kernel/realtime
[Service]
Type=forking
+ExecStartPre=/usr/bin/sh -c '/usr/bin/xset q 2>&1 > /dev/null'
ExecStart=/usr/bin/compton --config %h/.config/compton.conf -b
Restart=always
+RestartSec=3s
[Install]
WantedBy=default.target