Merge branch 'user/okmans/swayidle/restart' into 'master'

Automatically restart the swayidle when its configuration changed

See merge request tile-os/tileos-settings-sway!2
This commit is contained in:
Aleksey Samoilov 2024-07-18 15:26:32 +00:00
commit 46224a32e6
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