mirror of
https://github.com/nix-community/home-manager
synced 2025-01-11 11:39:49 +01:00
waybar: add onChange configuration reload
This commit is contained in:
parent
8f1d8c2ef1
commit
d5151186ac
1 changed files with 12 additions and 2 deletions
|
@ -366,11 +366,21 @@ in {
|
|||
# Generate warnings about defined but unreferenced modules
|
||||
inherit warnings;
|
||||
|
||||
xdg.configFile."waybar/config".source = configSource;
|
||||
xdg.configFile."waybar/config" = {
|
||||
source = configSource;
|
||||
onChange = ''
|
||||
${pkgs.procps}/bin/pkill -u $USER -USR2 waybar || true
|
||||
'';
|
||||
};
|
||||
})
|
||||
|
||||
(mkIf (cfg.style != null) {
|
||||
xdg.configFile."waybar/style.css".text = cfg.style;
|
||||
xdg.configFile."waybar/style.css" = {
|
||||
text = cfg.style;
|
||||
onChange = ''
|
||||
${pkgs.procps}/bin/pkill -u $USER -USR2 waybar || true
|
||||
'';
|
||||
};
|
||||
})
|
||||
|
||||
(mkIf cfg.systemd.enable {
|
||||
|
|
Loading…
Reference in a new issue