mirror of
https://github.com/nix-community/home-manager
synced 2024-11-15 23:59:45 +01:00
dunst: kill daemon on configuration change
Since Dunst is DBus activated it is OK to simply kill it since DBus will restart it when necessary.
This commit is contained in:
parent
6f422785c3
commit
faee571850
1 changed files with 11 additions and 1 deletions
|
@ -155,7 +155,17 @@ in
|
||||||
}
|
}
|
||||||
|
|
||||||
(mkIf (cfg.settings != {}) {
|
(mkIf (cfg.settings != {}) {
|
||||||
xdg.configFile."dunst/dunstrc".text = toDunstIni cfg.settings;
|
xdg.configFile."dunst/dunstrc" = {
|
||||||
|
text = toDunstIni cfg.settings;
|
||||||
|
onChange = ''
|
||||||
|
pkillVerbose=""
|
||||||
|
if [[ -v VERBOSE ]]; then
|
||||||
|
pkillVerbose="-e"
|
||||||
|
fi
|
||||||
|
$DRY_RUN_CMD ${pkgs.procps}/bin/pkill -u $USER $pkillVerbose dunst
|
||||||
|
unset pkillVerbose
|
||||||
|
'';
|
||||||
|
};
|
||||||
})
|
})
|
||||||
]
|
]
|
||||||
);
|
);
|
||||||
|
|
Loading…
Reference in a new issue