waybar: add onChange configuration reload
This commit is contained in:
parent
8f1d8c2ef1
commit
d5151186ac
|
@ -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