mirror of
https://github.com/nix-community/home-manager
synced 2025-01-25 18:35:01 +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
|
# Generate warnings about defined but unreferenced modules
|
||||||
inherit warnings;
|
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) {
|
(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 {
|
(mkIf cfg.systemd.enable {
|
||||||
|
|
Loading…
Add table
Reference in a new issue