From 5f6f793979ad1869ac5edc26f62acce7dbc58b6e Mon Sep 17 00:00:00 2001 From: Jan-Bulthuis Date: Mon, 2 Dec 2024 00:51:45 +0100 Subject: [PATCH] Restart waybar after rebuild --- modules/users/modules/desktop/bar/waybar.nix | 7 +++++++ 1 file changed, 7 insertions(+) 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 = {