From bdf0d226939d8c4e81d2a54fab6cb123a54d281c Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Fri, 6 Feb 2026 13:24:52 +0100 Subject: fixed app-launcher wrapper with pre declared shell variables for better conversion from nix vars to shell vars --- modules/home/i3wm/nord-blue/dmenu.nix | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'modules') diff --git a/modules/home/i3wm/nord-blue/dmenu.nix b/modules/home/i3wm/nord-blue/dmenu.nix index 42be7ab..2e6f6d8 100644 --- a/modules/home/i3wm/nord-blue/dmenu.nix +++ b/modules/home/i3wm/nord-blue/dmenu.nix @@ -1,10 +1,11 @@ -{ pkgs, vars }: # <- accept the colors set as an argument +{ pkgs, vars }: -# Wrapper for dmenu that uses your color variables pkgs.writeShellScriptBin "app-launcher" '' #!/usr/bin/env sh - exec ${pkgs.dmenu}/bin/dmenu_run \ - -fn 'JetBrains Mono-12' \ - -nb '${vars.colors.background}' -nf '${vars.colors.foreground}' \ - -sb '${vars.colors.accent}' -sf '${vars.colors.text}' + BG='${vars.colors.background}' + FG='${vars.colors.foreground}' + ACCENT='${vars.colors.accent}' + TEXT='${vars.colors.text}' + + dmenu_run -fn 'JetBrains Mono-12' -nb "$BG" -nf "$FG" -sb "$ACCENT" -sf "$TEXT" '' -- cgit v1.2.3