From cef404fa73b4794340767584a552c5e80b59252c Mon Sep 17 00:00:00 2001 From: Natasha Moongrave Date: Fri, 6 Feb 2026 13:06:23 +0100 Subject: fixed dmenu wrapper to work with global variables --- modules/home/i3wm/nord-blue/dmenu.nix | 6 +++--- modules/home/i3wm/nord-blue/i3.nix | 3 +-- 2 files changed, 4 insertions(+), 5 deletions(-) (limited to 'modules/home') diff --git a/modules/home/i3wm/nord-blue/dmenu.nix b/modules/home/i3wm/nord-blue/dmenu.nix index c07952f..9e4652c 100644 --- a/modules/home/i3wm/nord-blue/dmenu.nix +++ b/modules/home/i3wm/nord-blue/dmenu.nix @@ -1,10 +1,10 @@ -{ pkgs, colors }: # <- accept the colors set as an argument +{ pkgs, vars }: # <- accept the colors set as an argument # 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}' + -nb '${vars.colors.background}' -nf '${vars.colors.foreground}' \ + -sb '${vars.colors.accent}' -sf '${vars.colors.text}' '' diff --git a/modules/home/i3wm/nord-blue/i3.nix b/modules/home/i3wm/nord-blue/i3.nix index 268da64..c32e205 100644 --- a/modules/home/i3wm/nord-blue/i3.nix +++ b/modules/home/i3wm/nord-blue/i3.nix @@ -3,7 +3,7 @@ let vars = import ./variables.nix; lock-screen = import ./i3lock.nix {inherit pkgs; }; - dmenu = import ./dmenu.nix {inherit pkgs; }; + dmenu = import ./dmenu.nix {inherit pkgs vars; }; mod = "Mod4"; in { @@ -113,7 +113,6 @@ in home.packages = with pkgs; [ dmenu # App launcher i3lock # Lock screen - scripts.lock-screen # Actual lock screen functionality imagemagick # Handle wallpaper resizing for i3-lock polybar # Status bar alacritty # Terminal Emulator -- cgit v1.2.3