aboutsummaryrefslogtreecommitdiffstats
path: root/modules/desktop/niri/default.nix
diff options
context:
space:
mode:
authorArpit Chakladar <arpitchakladar@gmail.com>2026-09-06 15:38:47 +0530
committerArpit Chakladar <arpitchakladar@gmail.com>2026-09-06 15:38:47 +0530
commitf90a73b35d74c606777d37ac46445e423ec23515 (patch)
treee1c72d1a39c009066e58e8723be2018d564afdc6 /modules/desktop/niri/default.nix
parentae23065f2b7c1ee31767bb493849c3c8fee5fed2 (diff)
downloadhome-manager-config-f90a73b35d74c606777d37ac46445e423ec23515.tar.gz
home-manager-config-f90a73b35d74c606777d37ac46445e423ec23515.zip
feat(desktop/niri): added and modified keybindings, fixed configs
- using keybindings - Mod+D for launching rofi - Mod+R for cycling between layouts (50% and 100%) - fixed Mod+number keybinding for moving to workspaces - removed unnecessary/unused keybindings - using the home-manager option to set the layer-rule for the overview background instead of writing raw text configuration
Diffstat (limited to 'modules/desktop/niri/default.nix')
-rw-r--r--modules/desktop/niri/default.nix18
1 files changed, 11 insertions, 7 deletions
diff --git a/modules/desktop/niri/default.nix b/modules/desktop/niri/default.nix
index 1f1533d..b13cdf4 100644
--- a/modules/desktop/niri/default.nix
+++ b/modules/desktop/niri/default.nix
@@ -65,6 +65,9 @@
};
wayland.windowManager.niri.settings = {
+ hotkey-overlay = {
+ skip-at-startup = { };
+ };
input = {
keyboard.xkb.layout = "us";
touchpad = {
@@ -75,6 +78,10 @@
accel-speed = 0.5;
};
};
+ layer-rule._children = [
+ { "match namespace=\"^wallpaper$\"" = { }; }
+ { place-within-backdrop = true; }
+ ];
layout = {
gaps = 5;
struts = {
@@ -92,6 +99,10 @@
};
border.off = { };
shadow.off = { };
+ preset-column-widths._children = [
+ { proportion = 0.5; }
+ { proportion = 1.0; }
+ ];
};
prefer-no-csd = true;
screenshot-path = "~/Pictures/Screenshots/Screenshot from %Y-%m-%d %H-%M-%S.png";
@@ -104,12 +115,5 @@
"fill"
];
};
-
- wayland.windowManager.niri.extraConfig = ''
- layer-rule {
- match namespace="^wallpaper$"
- place-within-backdrop true
- }
- '';
};
}