From e135d6bcd6473620f3f4624ec95bfe309ab26e5e Mon Sep 17 00:00:00 2001 From: chn Date: Tue, 2 Dec 2025 08:31:21 +0800 Subject: [PATCH] modules.system.gui: fix niri --- modules/system/gui.nix | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/modules/system/gui.nix b/modules/system/gui.nix index a63f0ce5..d5ed9ebd 100644 --- a/modules/system/gui.nix +++ b/modules/system/gui.nix @@ -76,10 +76,21 @@ inputs: niri.enableKeybinds = true; systemd = { enable = true; restartIfChanged = true; }; }; - niri.settings.binds = + niri.settings = { - "Mod+WheelScrollDown" = { action.focus-column-right = {}; cooldown-ms = 150; }; - "Mod+WheelScrollUp" = { action.focus-column-left = {}; cooldown-ms = 150; }; + binds = + { + "Mod+WheelScrollDown" = { action.focus-column-right = {}; cooldown-ms = 50; }; + "Mod+WheelScrollUp" = { action.focus-column-left = {}; cooldown-ms = 50; }; + "Mod+Left".action.focus-column-right = {}; + "Mod+Right".action.focus-column-left = {}; + "Mod+MouseMiddle".action.close-window = {}; + }; + outputs = + { + "Tianma Microelectronics Ltd. TL134ADXP03 Unknown".scale = 1; + "Xiaomi Corporation Mi Monitor 0x00000001".scale = 1; + }; }; }; })];