From bccb61ec27b46aceb355769d4ac9a4ea70ec91f1 Mon Sep 17 00:00:00 2001 From: Ari Sosnovsky Date: Thu, 4 Dec 2025 11:26:23 -0500 Subject: [PATCH] nicer niri stuff --- configs/niri/config.kdl | 52 ++++++++++++++++++++++++++++++++++++++++- 1 file changed, 51 insertions(+), 1 deletion(-) diff --git a/configs/niri/config.kdl b/configs/niri/config.kdl index 59a378f..fd5b924 100644 --- a/configs/niri/config.kdl +++ b/configs/niri/config.kdl @@ -97,7 +97,7 @@ layout { default-column-width { proportion 0.5; } focus-ring { width 4 - active-gradient from="#f00f" to="#0f05" angle=45 in="oklch longer hue" + active-gradient from="#ff06" to="#af0f" angle=45 in="oklch longer hue" inactive-color "#505050" } border { @@ -163,6 +163,10 @@ window-rule { match is-active=false opacity 0.85 } +window-rule { + match is-urgent=true + open-focused true +} window-rule { match app-id="satty" open-focused true @@ -186,6 +190,20 @@ window-rule { open-focused true opacity 0.95 } +window-rule { + match app-id=r"Bitwarden" + match app-id="Sparrow" + match title="Bitwarden" + block-out-from "screen-capture" + shadow { + on + } + focus-ring { + width 4 + active-color "#f00f" + inactive-color "#f00f" + } +} // ========================= // General Stuff // ========================= @@ -259,3 +277,35 @@ binds { } spawn-at-startup "/home/ari/.config/niri/start-up-script.sh" + + +recent-windows { + // off + debounce-ms 750 + + open-delay-ms 150 + + highlight { + active-color "#999999ff" + urgent-color "#ff9999ff" + padding 30 + corner-radius 0 + } + + previews { + max-height 480 + max-scale 0.5 + } + + binds { + Alt+Tab { next-window; } + Alt+Shift+Tab { previous-window; } + Alt+grave { next-window filter="app-id"; } + Alt+Shift+grave { previous-window filter="app-id"; } + + Mod+Tab { next-window; } + Mod+Shift+Tab { previous-window; } + Mod+grave { next-window filter="app-id"; } + Mod+Shift+grave { previous-window filter="app-id"; } + } +}