From e38a646e5cd3d000c8fffb14632f3bb8a45dd042 Mon Sep 17 00:00:00 2001 From: losnappas Date: Tue, 27 May 2025 23:03:55 +0300 Subject: [PATCH] bemenu: fix undefined variable error (#1390) Link: https://github.com/nix-community/stylix/pull/1390 Reviewed-by: awwpotato --- modules/bemenu/hm.nix | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/modules/bemenu/hm.nix b/modules/bemenu/hm.nix index cf91e604..653ff4bd 100644 --- a/modules/bemenu/hm.nix +++ b/modules/bemenu/hm.nix @@ -39,7 +39,11 @@ mkTarget { } ) ( - { colors, opacity }: + { + colors, + opacity, + cfg, + }: { programs.bemenu.settings = with colors.withHashtag; @@ -63,8 +67,8 @@ mkTarget { nf = "${base05}"; # Normal fg scf = "${base03}"; # Scrollbar fg - ab = "${if alternate then base00 else base01}"; # Alternate bg - af = "${if alternate then base04 else base05}"; # Alternate fg + ab = "${if cfg.alternate then base00 else base01}"; # Alternate bg + af = "${if cfg.alternate then base04 else base05}"; # Alternate fg }; } )