aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIvan Molodetskikh <yalterz@gmail.com>2024-12-24 12:56:21 +0300
committerIvan Molodetskikh <yalterz@gmail.com>2024-12-30 20:12:37 +0300
commitbefc399506a1e8f946b4c93c128ee76314bebbe5 (patch)
tree609e0d8d8917949e539e7c69399ee2e70b937065
parent88116b9fb1f93d6175a58a36c6fdd1fb8b240a3f (diff)
downloadniri-befc399506a1e8f946b4c93c128ee76314bebbe5.tar.gz
niri-befc399506a1e8f946b4c93c128ee76314bebbe5.tar.bz2
niri-befc399506a1e8f946b4c93c128ee76314bebbe5.zip
default-config: Make Firefox PiP floating
-rw-r--r--resources/default-config.kdl9
1 files changed, 9 insertions, 0 deletions
diff --git a/resources/default-config.kdl b/resources/default-config.kdl
index ca612fc1..4e53ef9d 100644
--- a/resources/default-config.kdl
+++ b/resources/default-config.kdl
@@ -250,6 +250,15 @@ window-rule {
default-column-width {}
}
+// Open the Firefox picture-in-picture player as floating by default.
+window-rule {
+ // This app-id regular expression will work for both:
+ // - host Firefox (app-id is "firefox")
+ // - Flatpak Firefox (app-id is "org.mozilla.firefox")
+ match app-id=r#"firefox$"# title="^Picture-in-Picture$"
+ open-floating true
+}
+
// Example: block out two password managers from screen capture.
// (This example rule is commented out with a "/-" in front.)
/-window-rule {