diff --git a/modules/users/modules/desktop/bar/waybar.nix b/modules/users/modules/desktop/bar/waybar.nix index f661b13..a0f43de 100644 --- a/modules/users/modules/desktop/bar/waybar.nix +++ b/modules/users/modules/desktop/bar/waybar.nix @@ -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 = {