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 {