Add swayidle configuration monitoring service
This commit is contained in:
parent
88e5d60fbc
commit
852abda7aa
2 changed files with 16 additions and 0 deletions
10
usr/lib/systemd/user/swayidle-restart.path
Normal file
10
usr/lib/systemd/user/swayidle-restart.path
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
[Unit]
|
||||||
|
Description=Automatically restart the swayidle when its configuration changes
|
||||||
|
PartOf=swayidle.service
|
||||||
|
After=swayidle.service
|
||||||
|
|
||||||
|
[Path]
|
||||||
|
PathChanged=%h/.config/swayidle/config
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=sway-session.target
|
6
usr/lib/systemd/user/swayidle-restart.service
Normal file
6
usr/lib/systemd/user/swayidle-restart.service
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
[Service]
|
||||||
|
ExecStart=systemctl --user restart swayidle.service
|
||||||
|
Type=oneshot
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=graphical-session.target
|
Loading…
Add table
Reference in a new issue