diff options
| author | Natasha Moongrave <natasha@256phi.eu> | 2026-02-06 13:06:23 +0100 |
|---|---|---|
| committer | Natasha Moongrave <natasha@256phi.eu> | 2026-02-06 13:06:23 +0100 |
| commit | cef404fa73b4794340767584a552c5e80b59252c (patch) | |
| tree | 2db2f60a8bc3469022e724c745ec4dda6b7339d4 /modules | |
| parent | 729dd959b5d77166b5172d0a946ae4351b46348c (diff) | |
fixed dmenu wrapper to work with global variables
Diffstat (limited to 'modules')
| -rw-r--r-- | modules/home/i3wm/nord-blue/dmenu.nix | 6 | ||||
| -rw-r--r-- | modules/home/i3wm/nord-blue/i3.nix | 3 |
2 files changed, 4 insertions, 5 deletions
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 |
