1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 11:36:05 +01:00

waybar: use X-Reload-Triggers

This causes the running waybar to be reloaded rather that fully
restarted when only the configuration changes.
This commit is contained in:
Robert Helgesson 2025-09-08 16:49:52 +02:00
parent b7112b12ea
commit 6d7c11a0ad

View file

@ -353,7 +353,7 @@ in
];
After = [ cfg.systemd.target ];
ConditionEnvironment = "WAYLAND_DISPLAY";
X-Restart-Triggers =
X-Reload-Triggers =
optional (settings != [ ]) "${config.xdg.configFile."waybar/config".source}"
++ optional (cfg.style != null) "${config.xdg.configFile."waybar/style.css".source}";
};