diff options
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/home/i3wm/nord-blue/dmenu.nix | 13 |
1 files changed, 7 insertions, 6 deletions
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" '' |
