From 19adb5f4cf9bbaf74f1cc493ae99b769d1f13add Mon Sep 17 00:00:00 2001 From: "SilverAg.L" Date: Thu, 4 Dec 2025 02:22:04 +0800 Subject: [PATCH] Revert "update niri config to make fcitx5 "go through" properly." This reverts commit 2b2386bbbeeef7b3488daba56482f532707b0b75. --- .config/niri/config.kdl | 65 ++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 33 deletions(-) diff --git a/.config/niri/config.kdl b/.config/niri/config.kdl index 8893e3a..c3bfeb6 100644 --- a/.config/niri/config.kdl +++ b/.config/niri/config.kdl @@ -133,9 +133,8 @@ overview { zoom 0.5 } -debug { - // strict-new-window-focus-policy // useless in 25.11? - deactivate-unfocused-windows +switch-events { + lid-close { spawn "bash" "-c" "swaylock" "&&" "systemctl" "suspend"; } } gestures { @@ -155,42 +154,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 {