From 7c774115f8a597b3ccf2f0aa2eab137aad1546f9 Mon Sep 17 00:00:00 2001 From: Haonan Chen Date: Mon, 15 Dec 2025 14:24:41 +0800 Subject: [PATCH] modules.system.gui: set niri window layout --- modules/system/gui.nix | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/modules/system/gui.nix b/modules/system/gui.nix index bc22068d..b1181229 100644 --- a/modules/system/gui.nix +++ b/modules/system/gui.nix @@ -76,6 +76,9 @@ inputs: "Mod+Ctrl+C".action.spawn = [ "sh" "-c" "${xsel} -ob | ${wl-copy}" ]; "Mod+Ctrl+V".action.spawn = [ "sh" "-c" "${wl-paste} -n | ${xsel} -ib" ]; "Mod+S".action.screenshot = {}; + "Mod+F".action.set-column-width= "100%"; + "Mod+R".action.switch-preset-column-width = {}; + "Mod+T".action.expand-column-to-available-width = {}; }; outputs = { @@ -89,6 +92,11 @@ inputs: }; }; input = { touchpad.dwt = true; keyboard.numlock = true; }; + layout = + { + default-column-width.proportion = 0.5; + preset-column-widths = [ { proportion = 0.33333; } { proportion = 0.5; } { proportion = 0.66667; } ]; + }; }; }; })];