Add waybar configuration monitoring service

This commit is contained in:
Alexander Oakman 2024-07-23 02:25:10 +03:00
parent 5af0a5be11
commit 6dd19b8f20
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,11 @@
[Unit]
Description=Automatically restart the waybar when its configuration changes
PartOf=waybar.service
[Path]
PathChanged=%h/.config/waybar
PathChanged=%h/.config/waybar/colors
PathChanged=%h/waybar/config
[Install]
WantedBy=paths.target

View file

@ -0,0 +1,3 @@
[Service]
ExecStart=systemctl --user restart waybar.service
Type=oneshot