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:
parent
8a5b45f41f
commit
51178df4a3
5 changed files with 6 additions and 4 deletions
|
@ -58,13 +58,9 @@ type unclutter >/dev/null 2>&1 && unclutter &
|
||||||
type picom >/dev/null 2>&1 && picom &
|
type picom >/dev/null 2>&1 && picom &
|
||||||
# flashfocus 'flashes' windows as they gain focus
|
# flashfocus 'flashes' windows as they gain focus
|
||||||
type flashfocus >/dev/null 3>&1 && flashfocus --flash-lone-windows never &
|
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
|
# if sxhkd - the key-binding daemon is installed, start it up
|
||||||
type sxhkd >/dev/null 2>&1 && sxhkd-piped &
|
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
|
# if nextcloud-client exists, start it up
|
||||||
type nextcloud >/dev/null 2>&1 && nextcloud --background &
|
type nextcloud >/dev/null 2>&1 && nextcloud --background &
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
/usr/lib/systemd/user/greenclip.service
|
|
@ -0,0 +1 @@
|
||||||
|
/usr/lib/systemd/user/redshift.service
|
|
@ -0,0 +1,2 @@
|
||||||
|
[Service]
|
||||||
|
RestartSec=5
|
|
@ -0,0 +1,2 @@
|
||||||
|
[Service]
|
||||||
|
RestartSec=10
|
Loading…
Reference in a new issue