From 2b2386bbbeeef7b3488daba56482f532707b0b75 Mon Sep 17 00:00:00 2001 From: "SilverAg.L" Date: Thu, 4 Dec 2025 02:20:42 +0800 Subject: [PATCH] update niri config to make fcitx5 "go through" properly. --- .config/niri/config.kdl | 65 +++++++++++++++++++++-------------------- 1 file changed, 33 insertions(+), 32 deletions(-) diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl index c3bfeb6..8893e3a 100644 --- a/.config/niri/config.kdl +++ b/.config/niri/config.kdl @@ -133,8 +133,9 @@ overview { zoom 0.5 } -switch-events { - lid-close { spawn "bash" "-c" "swaylock" "&&" "systemctl" "suspend"; } +debug { + // strict-new-window-focus-policy // useless in 25.11? + deactivate-unfocused-windows } gestures { @@ -154,42 +155,42 @@ animations { // Slow down all animations by this factor. Values below 1 speed them up instead. // slowdown 3.0 - window-open { - spring damping-ratio=0.80 stiffness=400 epsilon=0.0001 - } + window-open { + spring damping-ratio=0.80 stiffness=400 epsilon=0.0001 + } - window-close { - duration-ms 350 - curve "ease-out-expo" - } + window-close { + duration-ms 350 + curve "ease-out-expo" + } - window-resize { - spring damping-ratio=1.0 stiffness=300 epsilon=0.0001 - } + window-resize { + spring damping-ratio=1.0 stiffness=300 epsilon=0.0001 + } - window-movement { - spring damping-ratio=1.0 stiffness=300 epsilon=0.0001 - } - - overview-open-close { - duration-ms 300 - curve "ease-out-quad" - } + window-movement { + spring damping-ratio=1.0 stiffness=300 epsilon=0.0001 + } + + overview-open-close { + duration-ms 300 + curve "ease-out-quad" + } - horizontal-view-movement { - duration-ms 500 - curve "ease-out-expo" - } + horizontal-view-movement { + duration-ms 500 + curve "ease-out-expo" + } - workspace-switch { - duration-ms 500 - curve "ease-out-expo" - } + workspace-switch { + duration-ms 500 + curve "ease-out-expo" + } - screenshot-ui-open { - duration-ms 400 - curve "ease-out-cubic" - } + screenshot-ui-open { + duration-ms 400 + curve "ease-out-cubic" + } } window-rule {