summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
Diffstat (limited to 'modules')
-rw-r--r--modules/home/i3wm/nord-blue/dmenu.nix24
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}'
+'';