niri/config: add window rules to float windows; fix screencasting

This commit is contained in:
Bloxx12 2025-07-08 22:57:43 +02:00
commit c0aa4f2f8f
Signed by: faukah
SSH key fingerprint: SHA256:Uj2AXqvtdCA4hn5Hq0ZonhIAyUqI1q4w2sMG3Z1TH7E

View file

@ -115,6 +115,32 @@ window-rule {
block-out-from "screen-capture" block-out-from "screen-capture"
open-on-workspace "keepassxc" 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 { hotkey-overlay {
skip-at-startup skip-at-startup
} }