diff --git a/tree/.config/niri/config.kdl.tpl b/tree/.config/niri/config.kdl.tpl index 67e2bca..c95d5c3 100644 --- a/tree/.config/niri/config.kdl.tpl +++ b/tree/.config/niri/config.kdl.tpl @@ -228,26 +228,25 @@ vec4 close_color(vec3 coords_geo, vec3 size_geo) { // Find more information on the wiki: // https://github.com/YaLTeR/niri/wiki/Configuration:-Window-Rules -// Work around WezTerm's initial configure bug -// by setting an empty default-column-width. window-rule { geometry-corner-radius 16 clip-to-geometry true } -window-rule { - // This regular expression is intentionally made as specific as possible, - // since this is the default config, and we want no false positives. - // You can get away with just app-id="wezterm" if you want. - match app-id=r#"^org\.wezfurlong\.wezterm$"# -} window-rule { - match title="Volume" + match title="Volume Indicator" geometry-corner-radius 35 min-width 300 max-width 300 min-height 100 max-height 100 + open-floating true + default-floating-position x=35 y=35 relative-to="top-right" +} + +window-rule { + match app-id="Mullvad VPN" + default-floating-position x=5 y=10 relative-to="bottom-left" } // block out password managers from screen capture. @@ -258,6 +257,12 @@ window-rule { block-out-from "screen-capture" } +window-rule { + match title="Virtual Machine Manager" + match app-id="virt-manager" + max-width 400 +} + binds { // Keys consist of modifiers separated by + signs, followed by an XKB key name // in the end. To find an XKB name for a particular key, you may use a program @@ -271,7 +276,7 @@ binds { // Mod-Shift-/, which is usually the same as Mod-?, // shows a list of important hotkeys. - Mod+Shift+Slash { show-hotkey-overlay; } + Mod+Shift+Plus { show-hotkey-overlay; } Mod+Return { spawn "alacritty"; } Mod+D { spawn "fuzzel"; } @@ -291,6 +296,9 @@ binds { Mod+Q { close-window; } + Mod+Space { switch-focus-between-floating-and-tiling; } + Mod+Ctrl+Space { toggle-window-floating; } + Mod+Left { focus-column-left; } Mod+Down { focus-window-down; } Mod+Up { focus-window-up; }