Add conditions to systemd services
This commit is contained in:
parent
d46649ed5f
commit
f64acdea2b
2 changed files with 2 additions and 0 deletions
|
@ -2,6 +2,7 @@
|
|||
Description=Idle manager for Wayland
|
||||
Documentation=man:swayidle(1)
|
||||
PartOf=graphical-session.target
|
||||
ConditionPathExists=/usr/bin/swayidle
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
[Unit]
|
||||
Requires=graphical-session.target
|
||||
ConditionPathExists=/usr/share/sway/scripts/switch-top-level.py
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/share/sway/scripts/switch-top-level.py
|
||||
|
|
Loading…
Add table
Reference in a new issue