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
|
Description=Idle manager for Wayland
|
||||||
Documentation=man:swayidle(1)
|
Documentation=man:swayidle(1)
|
||||||
PartOf=graphical-session.target
|
PartOf=graphical-session.target
|
||||||
|
ConditionPathExists=/usr/bin/swayidle
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Requires=graphical-session.target
|
Requires=graphical-session.target
|
||||||
|
ConditionPathExists=/usr/share/sway/scripts/switch-top-level.py
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
ExecStart=/usr/share/sway/scripts/switch-top-level.py
|
ExecStart=/usr/share/sway/scripts/switch-top-level.py
|
||||||
|
|
Loading…
Add table
Reference in a new issue