From c0aa4f2f8f1ebd4ac1f6a51c8bee785299fa206a Mon Sep 17 00:00:00 2001 From: Bloxx12 Date: Tue, 8 Jul 2025 22:57:43 +0200 Subject: [PATCH] niri/config: add window rules to float windows; fix screencasting --- modules/wms/wayland/niri/config.kdl | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) diff --git a/modules/wms/wayland/niri/config.kdl b/modules/wms/wayland/niri/config.kdl index 180da60..d87585a 100644 --- a/modules/wms/wayland/niri/config.kdl +++ b/modules/wms/wayland/niri/config.kdl @@ -115,6 +115,32 @@ window-rule { block-out-from "screen-capture" open-on-workspace "keepassxc" } +window-rule { + match app-id="unset" + open-floating true +} +window-rule { + match app-id="org.gnome.Nautilus" + open-floating true +} +window-rule { + match app-id="org.freedesktop.impl.portal.desktop.kde" + open-floating true +} + +// Fix discord screencasting +debug { + wait-for-frame-completion-in-pipewire +} +// Always focus the KeePassXC-Browser unlock dialog. +// +// This dialog opens parented to the KeePassXC window rather than the browser, +// so it doesn't get auto-focused by default. +window-rule { + match app-id="^org\\.keepassxc\\.KeePassXC$" title="^KeePassXC - Browser Access Request$" + match app-id="^org\\.keepassxc\\.KeePassXC$" title="^Unlock Database - KeePassXC$" + open-focused true +} hotkey-overlay { skip-at-startup }