From 57b40d2b311223941fa32c728c3c916bd0c5532b Mon Sep 17 00:00:00 2001 From: Noah Masur <7386960+nmasur@users.noreply.github.com> Date: Sun, 20 Jul 2025 16:01:34 -0400 Subject: [PATCH] fix polybar issues --- .../home-manager/modules/nmasur/presets/services/i3.nix | 2 +- .../modules/nmasur/presets/services/polybar.nix | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/platforms/home-manager/modules/nmasur/presets/services/i3.nix b/platforms/home-manager/modules/nmasur/presets/services/i3.nix index 7bb7501..3cf7cfe 100644 --- a/platforms/home-manager/modules/nmasur/presets/services/i3.nix +++ b/platforms/home-manager/modules/nmasur/presets/services/i3.nix @@ -214,7 +214,7 @@ in cfg.commands.lockScreen != null ) "exec ${cfg.commands.lockScreen}"; "${modifier}+Mod1+h" = - "exec --no-startup-id ${lib.getExe cfg.terminal} --command sh -c '${pkgs.home-manager}/bin/home-manager switch --flake ${config.nmasur.presets.programs.dotfiles.path} || read'"; + ''exec --no-startup-id ${lib.getExe cfg.terminal} --command sh -c "${pkgs.home-manager}/bin/home-manager switch --flake ${config.nmasur.presets.programs.dotfiles.path}#''${hostname} || read" ''; "${modifier}+Mod1+r" = "exec --no-startup-id ${lib.getExe cfg.terminal} --command sh -c 'doas nixos-rebuild switch --flake ${config.nmasur.presets.programs.dotfiles.path} || read'"; diff --git a/platforms/home-manager/modules/nmasur/presets/services/polybar.nix b/platforms/home-manager/modules/nmasur/presets/services/polybar.nix index 081a318..d74e179 100644 --- a/platforms/home-manager/modules/nmasur/presets/services/polybar.nix +++ b/platforms/home-manager/modules/nmasur/presets/services/polybar.nix @@ -142,9 +142,9 @@ in if config.nmasur.presets.services.i3.terminal == pkgs.wezterm then "start --class aerc -- aerc" else - "--class=aerc --command=aerc"; + "--class=com.noah.aerc --command=aerc"; in - "i3-msg 'exec --no-startup-id ${config.nmasur.presets.services.i3.terminal} ${startupCommand}'; sleep 0.15; i3-msg '[class=aerc] focus'"; + "i3-msg 'exec --no-startup-id ${lib.getExe config.nmasur.presets.services.i3.terminal} ${startupCommand}'; sleep 0.15; i3-msg '[class=com.noah.aerc] focus'"; }; "module/network" = { type = "internal/network"; @@ -221,7 +221,7 @@ in label = "%date%"; label-foreground = config.theme.colors.base06; # format-background = colors.background; - click-right = lib.getExe config.nmasur.presets.services.i3.terminal; + click-right = "i3-msg 'exec --no-startup-id ${lib.getExe config.nmasur.presets.services.i3.terminal}'"; }; "module/power" = { type = "custom/text";