Add swayidle configuration monitoring service

This commit is contained in:
Alexander Oakman 2024-07-17 22:28:39 +03:00
parent 88e5d60fbc
commit 852abda7aa
2 changed files with 16 additions and 0 deletions

View 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

View file

@ -0,0 +1,6 @@
[Service]
ExecStart=systemctl --user restart swayidle.service
Type=oneshot
[Install]
WantedBy=graphical-session.target