From 344e6c9ca3bb29a0a0d72c1c76ee360468c3b3d3 Mon Sep 17 00:00:00 2001 From: Tim Date: Wed, 13 May 2026 16:57:06 +0000 Subject: [PATCH] =?UTF-8?q?.config/niri/niri.d/window-rules.kdl=20hinzugef?= =?UTF-8?q?=C3=BCgt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/niri/niri.d/window-rules.kdl | 94 ++++++++++++++++++++++++++++ 1 file changed, 94 insertions(+) create mode 100644 .config/niri/niri.d/window-rules.kdl diff --git a/.config/niri/niri.d/window-rules.kdl b/.config/niri/niri.d/window-rules.kdl new file mode 100644 index 0000000..6fb8a09 --- /dev/null +++ b/.config/niri/niri.d/window-rules.kdl @@ -0,0 +1,94 @@ +// ────── Chat ────── + +window-rule { + match app-id="discord" + open-on-workspace "chat" +} + +window-rule { + match app-id="com.rtosta.zapzap" + open-on-workspace "chat" +} + +window-rule { + match app-id="signal" + open-on-workspace "chat" +} + +window-rule { + match app-id="Element" + open-on-workspace "chat" +} + +window-rule { + match app-id="org.mozilla.Thunderbird" + open-on-workspace "chat" + open-maximized true +} + + +// ────── Games ────── + +window-rule { + match app-id="heroic" + open-on-workspace "games" +} + +window-rule { + match app-id="steam" + open-on-workspace "games" + open-maximized true +} + +window-rule { + match app-id="Lutris" + open-on-workspace "games" +} + +window-rule { + match app-id="Bottles" + open-on-workspace "games" +} + + // ────────────── Sonstige Window Rules ────────────── + +window-rule { + match app-id=r#"firefox$"# title="^Picture-in-Picture$" + open-floating true // Always float Firefox PiP windows +} + +window-rule { + geometry-corner-radius 7 // Set every window radius to 20 + clip-to-geometry true +} + +// 1. Umbenennen-Dialog (Thunar) +window-rule { + match app-id="thunar" title="umbenennen$" + open-floating true + // Zentriert das Fenster + default-column-width { fixed 400; } +} + +// 2. Dateivorgangsfortschritt (Kopieren/Verschieben) +window-rule { + match app-id="thunar" title="^Dateivorgangsfortschritt" + open-floating true + default-column-width { fixed 450; } + default-window-height { fixed 150; } +} + +// 3. Bestätigungsdialoge (Ersetzen/Konflikte) +window-rule { + match app-id="thunar" title="^Ersetzen von Dateien bestätigen" + open-floating true + // Hier geben wir etwas mehr Breite für die Details + default-column-width { fixed 650; } +} +window-rule { + // Wir kombinieren App ID und den spezifischen Titel der Extension + match app-id="vivaldi-stable" title="^Bitwarden" + open-floating true + default-column-width { fixed 450; } + default-window-height { fixed 700; } +} \ No newline at end of file