Add waybar configuration monitoring service
This commit is contained in:
parent
5af0a5be11
commit
6dd19b8f20
2 changed files with 14 additions and 0 deletions
11
usr/lib/systemd/user/waybar-restart.path
Normal file
11
usr/lib/systemd/user/waybar-restart.path
Normal 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
|
3
usr/lib/systemd/user/waybar-restart.service
Normal file
3
usr/lib/systemd/user/waybar-restart.service
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[Service]
|
||||||
|
ExecStart=systemctl --user restart waybar.service
|
||||||
|
Type=oneshot
|
Loading…
Add table
Reference in a new issue