From f90a73b35d74c606777d37ac46445e423ec23515 Mon Sep 17 00:00:00 2001 From: Arpit Chakladar Date: Sun, 6 Sep 2026 15:38:47 +0530 Subject: 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 --- modules/desktop/niri/default.nix | 18 +++++++++++------- 1 file changed, 11 insertions(+), 7 deletions(-) (limited to 'modules/desktop/niri/default.nix') 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 - } - ''; }; } -- cgit v1.2.3