From 1d052d0b25f9c92088495d0d2339e03542069219 Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Fri, 6 Feb 2026 12:59:50 +0100 Subject: fixed dmenu.nix to work and be inline with the other wrapper scripts --- modules/home/i3wm/nord-blue/dmenu.nix | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/modules/home/i3wm/nord-blue/dmenu.nix b/modules/home/i3wm/nord-blue/dmenu.nix index 5810e7c..8464738 100644 --- a/modules/home/i3wm/nord-blue/dmenu.nix +++ b/modules/home/i3wm/nord-blue/dmenu.nix @@ -1,16 +1,10 @@ -{ pkgs }: +{ pkgs, colors }: # <- accept the colors set as an argument - -# Wrapper for dmenu since dmenu itself doesnt have native Home-Manager config nor a config file -let - vars = import ./variables.nix; -in -{ - pkgs.writeShellScriptBin "dmenu" '' - #!/usr/bin/env sh - exec ${pkgs.dmenu}/bin/dmenu_run \ - -fn 'JetBrains Mono-12' \ - -nb '#222222' -nf '#cccccc' \ - -sb '#285577' -sf '#ffffff' - ''; -} \ No newline at end of file +# Wrapper for dmenu that uses your color variables +pkgs.writeShellScriptBin "dmenu" '' + #!/usr/bin/env sh + exec ${pkgs.dmenu}/bin/dmenu_run \ + -fn 'JetBrains Mono-12' \ + -nb '${colors.background}' -nf '${colors.foreground}' \ + -sb '${colors.accent}' -sf '${colors.text}' +''; -- cgit v1.2.3