From ba7e6925f13f5fa88ec842f701e1ff989339b1a9 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 25 Aug 2016 23:26:51 +0200 Subject: user/compton.service: Adding a check if X is running using xset. Raising RestartSec to 3s. Making service anti-dependant on realtime kernel. --- user/compton.service | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'user') 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 -- cgit v1.2.3-70-g09d2 From ed46ff6cca2d22e974decd4310a7cfc0f3d0c8f6 Mon Sep 17 00:00:00 2001 From: David Runge Date: Thu, 25 Aug 2016 23:29:33 +0200 Subject: user/conky@.service: Adding a conky@ user service, that can be used to start conky scripts by configuration file name. --- user/conky@.service | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 user/conky@.service (limited to 'user') diff --git a/user/conky@.service b/user/conky@.service new file mode 100644 index 0000000..9017f30 --- /dev/null +++ b/user/conky@.service @@ -0,0 +1,12 @@ +[Unit] +Description=Conky system monitor +After=display-manager.service local-fs.target + +[Service] +Type=forking +ExecStart=/usr/bin/conky -c %h/.config/conky/%i +Restart=always +RestartSec=3s + +[Install] +WantedBy=default.target -- cgit v1.2.3-70-g09d2 From 6917ea4b332cb85e0f5fc7aa79a9188f7adec417 Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 25 Oct 2016 10:23:49 +0200 Subject: user/jack@.service: Removing named server settings (they conflict with many default clients. --- config/jack/fw1 | 1 - config/jack/internal-44100 | 1 - user/jack@.service | 2 +- 3 files changed, 1 insertion(+), 3 deletions(-) (limited to 'user') diff --git a/config/jack/fw1 b/config/jack/fw1 index f597ba6..a851d30 100644 --- a/config/jack/fw1 +++ b/config/jack/fw1 @@ -1,5 +1,4 @@ # Sample configuration file for a JACK systemd --user service, using a firewire device -NAME="default" DRIVER="firewire" DEVICE="/dev/fw1" NOMLOCK="" diff --git a/config/jack/internal-44100 b/config/jack/internal-44100 index 5c27d56..92e9c12 100644 --- a/config/jack/internal-44100 +++ b/config/jack/internal-44100 @@ -1,4 +1,3 @@ -NAME="default" DRIVER="alsa" DEVICE="hw:PCH" NOMLOCK="" diff --git a/user/jack@.service b/user/jack@.service index 7edafc6..47a068d 100644 --- a/user/jack@.service +++ b/user/jack@.service @@ -5,7 +5,7 @@ After=sound.target local-fs.target [Service] EnvironmentFile=-/etc/jack/%i EnvironmentFile=-%h/.config/jack/%i -ExecStart=/usr/bin/jackd -n $NAME $REALTIME -p $PORTMAX -d $DRIVER -d $DEVICE $DRIVER_SETTINGS +ExecStart=/usr/bin/jackd $REALTIME -p$PORTMAX -d$DRIVER -d$DEVICE $DRIVER_SETTINGS CPUSchedulingPolicy=rr CPUSchedulingPriority=70 LimitRTPRIO=71 -- cgit v1.2.3-70-g09d2 From c963b787521461b3aa06779ea8c671531f48f236 Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 25 Oct 2016 10:27:47 +0200 Subject: user/conky@.service: Moving to .conf files for conky configuration. --- user/conky@.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user') diff --git a/user/conky@.service b/user/conky@.service index 9017f30..9e0323e 100644 --- a/user/conky@.service +++ b/user/conky@.service @@ -4,7 +4,7 @@ After=display-manager.service local-fs.target [Service] Type=forking -ExecStart=/usr/bin/conky -c %h/.config/conky/%i +ExecStart=/usr/bin/conky -c %h/.config/conky/%i.conf Restart=always RestartSec=3s -- cgit v1.2.3-70-g09d2 From cc3410ec355468f8dee7b3f96a61dc0285e9c97c Mon Sep 17 00:00:00 2001 From: David Runge Date: Tue, 25 Oct 2016 14:02:21 +0200 Subject: user/jack@.service: Leaving space between flags and parameters. --- user/jack@.service | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'user') diff --git a/user/jack@.service b/user/jack@.service index 47a068d..751e5bd 100644 --- a/user/jack@.service +++ b/user/jack@.service @@ -5,7 +5,7 @@ After=sound.target local-fs.target [Service] EnvironmentFile=-/etc/jack/%i EnvironmentFile=-%h/.config/jack/%i -ExecStart=/usr/bin/jackd $REALTIME -p$PORTMAX -d$DRIVER -d$DEVICE $DRIVER_SETTINGS +ExecStart=/usr/bin/jackd $REALTIME -p $PORTMAX -d $DRIVER -d $DEVICE $DRIVER_SETTINGS CPUSchedulingPolicy=rr CPUSchedulingPriority=70 LimitRTPRIO=71 -- cgit v1.2.3-70-g09d2 From 6e9e40718a8b8577000724c7a819c19de8ec7e29 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 21 Dec 2016 16:40:04 +0100 Subject: user/gpg-agent.service: Removing gpg-agent.service, as it was added to the repository package gnupg. --- user/gpg-agent.service | 12 ------------ 1 file changed, 12 deletions(-) delete mode 100644 user/gpg-agent.service (limited to 'user') diff --git a/user/gpg-agent.service b/user/gpg-agent.service deleted file mode 100644 index 3914f68..0000000 --- a/user/gpg-agent.service +++ /dev/null @@ -1,12 +0,0 @@ -[Unit] -Description=GnuPG private key agent -IgnoreOnIsolate=true - -[Service] -Type=forking -ExecStart=/usr/bin/gpg-agent --daemon --homedir=%h/.gnupg -ExecStop=/usr/bin/pkill gpg-agent -Restart=on-abort - -[Install] -WantedBy=default.target -- cgit v1.2.3-70-g09d2