services: Add time override to greenclip, redshift

Both greenclip and redshift did not automatically start on system start,
since they needed X to be running but their restart was almost
instantaneously. So, they restarted their alloted 5 times before X was
ready and gave up.

Restart time has been set to 5 and 10 seconds, so their startup takes a
little longer but should, in most cases, succeed.
This commit is contained in:
Marty Oehme 2020-07-24 08:49:15 +02:00
parent 8a5b45f41f
commit 51178df4a3
No known key found for this signature in database
GPG key ID: 0CCB0526EFB9611A
5 changed files with 6 additions and 4 deletions

View file

@ -58,13 +58,9 @@ type unclutter >/dev/null 2>&1 && unclutter &
type picom >/dev/null 2>&1 && picom &
# flashfocus 'flashes' windows as they gain focus
type flashfocus >/dev/null 3>&1 && flashfocus --flash-lone-windows never &
# redshift removes blue light from display as it gets dark outside
type redshift >/dev/null 2>&1 && redshift &
# if sxhkd - the key-binding daemon is installed, start it up
type sxhkd >/dev/null 2>&1 && sxhkd-piped &
# if greenclip - a clipboard manager, integrated with rofi, is installed, start it up
type greenclip >/dev/null 2>&1 && greenclip daemon &
# if nextcloud-client exists, start it up
type nextcloud >/dev/null 2>&1 && nextcloud --background &

View file

@ -0,0 +1 @@
/usr/lib/systemd/user/greenclip.service

View file

@ -0,0 +1 @@
/usr/lib/systemd/user/redshift.service

View file

@ -0,0 +1,2 @@
[Service]
RestartSec=5

View file

@ -0,0 +1,2 @@
[Service]
RestartSec=10