services: Increase restart period for X services

Dropdown services need an X server to connect to and fail autostarting
if there's no available server.

HACK

Increasing their restart timer will alleviate this problem, *but* it
also means the dropdowns will start more slowly when closed by the user.

There should be another way to alleviate one issue (start automatically
after X is available) without exacerbating the other (restart when you
have been closed).
This commit is contained in:
Marty Oehme 2020-07-29 09:49:51 +02:00
parent 5d4998481f
commit 845dbba848
No known key found for this signature in database
GPG Key ID: 0CCB0526EFB9611A
2 changed files with 2 additions and 0 deletions

View File

@ -6,6 +6,7 @@ Type=simple
# workaround to allow relative executable invocation (i.e. current users' home dir)
ExecStart=/bin/bash -c 'alacritty --title "dropdown-terminal" --class Alacritty,scratchpad'
Restart=always
RestartSec=5
[Install]
WantedBy=default.target

View File

@ -6,6 +6,7 @@ Type=simple
# workaround to allow relative executable invocation (i.e. current users' home dir)
ExecStart=/bin/bash -c 'alacritty --title "dropdown-todo" --class "Alacritty,scratchpad" -e nvim -c ":set nonumber norelativenumber noshowmode noruler laststatus=0 noshowcmd shortmess=F" %h/documents/records/todo.md'
Restart=always
RestartSec=5
[Install]
WantedBy=default.target