diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-02-06 12:59:50 +0100 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-02-06 12:59:50 +0100 |
| commit | 1d052d0b25f9c92088495d0d2339e03542069219 (patch) | |
| tree | 4e3c4dc0e14c06640e4659d99b9ecc1bcd2e5942 | |
| parent | 09b3ad77b095fa3e131609fb4c264f3a606d66e9 (diff) | |
fixed dmenu.nix to work and be inline with the other wrapper scripts
| -rw-r--r-- | modules/home/i3wm/nord-blue/dmenu.nix | 24 |
1 files 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}' +''; |
