summaryrefslogtreecommitdiff
path: root/modules/home/i3wm
diff options
context:
space:
mode:
authorNatasha Moongrave <natasha@256phi.eu>2026-02-06 12:42:37 +0100
committerNatasha Moongrave <natasha@256phi.eu>2026-02-06 12:42:37 +0100
commitbf4c18dc71f8738be0a0d51a3e65dc6c888005b1 (patch)
tree9e12d380b7ef8e64c9c41484eac7812e71fd75bb /modules/home/i3wm
parent102a8cb0cb6c1765ea2caf984d332a901b9dc491 (diff)
added wrapper for dmenu
Diffstat (limited to 'modules/home/i3wm')
-rw-r--r--modules/home/i3wm/nord-blue/default.nix1
-rw-r--r--modules/home/i3wm/nord-blue/dmenu.nix13
-rw-r--r--modules/home/i3wm/nord-blue/i3.nix3
3 files changed, 16 insertions, 1 deletions
diff --git a/modules/home/i3wm/nord-blue/default.nix b/modules/home/i3wm/nord-blue/default.nix
index 2e11b02..626ebe8 100644
--- a/modules/home/i3wm/nord-blue/default.nix
+++ b/modules/home/i3wm/nord-blue/default.nix
@@ -3,6 +3,7 @@
{
imports = [
./alacritty.nix
+ ./dmenu.nix
./i3.nix
./picom.nix
];
diff --git a/modules/home/i3wm/nord-blue/dmenu.nix b/modules/home/i3wm/nord-blue/dmenu.nix
new file mode 100644
index 0000000..175b3d1
--- /dev/null
+++ b/modules/home/i3wm/nord-blue/dmenu.nix
@@ -0,0 +1,13 @@
+{ pkgs }:
+
+
+# Wrapper for dmenu since dmenu itself doesnt have native Home-Manager config nor a config file
+{
+ dmenu = 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
diff --git a/modules/home/i3wm/nord-blue/i3.nix b/modules/home/i3wm/nord-blue/i3.nix
index bd57bde..2a384c4 100644
--- a/modules/home/i3wm/nord-blue/i3.nix
+++ b/modules/home/i3wm/nord-blue/i3.nix
@@ -3,6 +3,7 @@
let
vars = import ./variables.nix;
scripts = import ./scripts.nix {inherit pkgs; };
+ dmenu = import ./dmneu.nix {inherit pkgs; };
mod = "Mod4";
in
{
@@ -49,7 +50,7 @@ in
keybindings = lib.mkOptionDefault {
"${mod}+Return" = "exec ${pkgs.alacritty}/bin/alacritty"; # Lanuch alacritty as a terminal
- "${mod}+m" = "exec ${pkgs.dmenu}/bin/dmenu"; # Launch dmenu (app launcher)
+ "${mod}+d" = "exec ${dmenu.dmenu}"; # Launch dmenu (app launcher)
"${mod}+q" = "kill"; # Close an app (kill the process)
"${mod}+Ctrl+l" = "exec lock-screen"; # Lock screen
"${mod}+Shift+r" = "restart"; # Reload i3