summaryrefslogtreecommitdiff
path: root/modules/home/i3wm/nord-blue/dmenu.nix
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-02-06 13:24:52 +0100
committerNatasha Moongrave <natasha@256phi.eu>2026-02-06 13:24:52 +0100
commitbdf0d226939d8c4e81d2a54fab6cb123a54d281c (patch)
tree393ad25748077ccec3962be4a3e5a9e6e7c73187 /modules/home/i3wm/nord-blue/dmenu.nix
parentfbad4d828272007ee5d6801294dce1f4c974386e (diff)
fixed app-launcher wrapper with pre declared shell variables for better conversion from nix vars to shell vars
Diffstat (limited to 'modules/home/i3wm/nord-blue/dmenu.nix')
-rw-r--r--modules/home/i3wm/nord-blue/dmenu.nix13
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"
''