Restart waybar after rebuild

This commit is contained in:
Jan-Bulthuis 2024-12-02 00:51:45 +01:00
parent 74e5398ccf
commit 5f6f793979
1 changed files with 7 additions and 0 deletions

View File

@ -23,6 +23,13 @@ in
wpa_supplicant_gui # TODO: Move
];
modules.desktop.reloadScript = ''
if ${pkgs.procps}/bin/pgrep waybar; then
${pkgs.procps}/bin/pkill waybar
fi
${pkgs.waybar}/bin/waybar &
'';
programs.waybar = {
enable = true;
settings = {