mirror of
https://github.com/niri-wm/niri.git
synced 2026-06-24 02:01:18 +07:00
wiki: Update Firefox window rules to match non-Flatpak
This commit is contained in:
@@ -98,12 +98,12 @@ There can be multiple *matchers* in one directive, then the window should match
|
|||||||
```kdl
|
```kdl
|
||||||
window-rule {
|
window-rule {
|
||||||
// Match Firefox windows with Gmail in title.
|
// Match Firefox windows with Gmail in title.
|
||||||
match app-id="org.mozilla.firefox" title="Gmail"
|
match app-id="firefox" title="Gmail"
|
||||||
}
|
}
|
||||||
|
|
||||||
window-rule {
|
window-rule {
|
||||||
// Match Firefox, but only when it is active...
|
// Match Firefox, but only when it is active...
|
||||||
match app-id=r#"^org\.mozilla\.firefox$"# is-active=true
|
match app-id="firefox" is-active=true
|
||||||
|
|
||||||
// ...or match Telegram...
|
// ...or match Telegram...
|
||||||
match app-id=r#"^org\.telegram\.desktop$"#
|
match app-id=r#"^org\.telegram\.desktop$"#
|
||||||
@@ -248,7 +248,7 @@ If the window opens on an output that is not currently focused, the window will
|
|||||||
// Open Firefox and Telegram (but not its Media Viewer)
|
// Open Firefox and Telegram (but not its Media Viewer)
|
||||||
// on a specific monitor.
|
// on a specific monitor.
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id=r#"^org\.mozilla\.firefox$"#
|
match app-id="firefox$"
|
||||||
match app-id=r#"^org\.telegram\.desktop$"#
|
match app-id=r#"^org\.telegram\.desktop$"#
|
||||||
exclude app-id=r#"^org\.telegram\.desktop$"# title="^Media viewer$"
|
exclude app-id=r#"^org\.telegram\.desktop$"# title="^Media viewer$"
|
||||||
|
|
||||||
@@ -287,7 +287,7 @@ Make the window open as a maximized column.
|
|||||||
```kdl
|
```kdl
|
||||||
// Maximize Firefox by default.
|
// Maximize Firefox by default.
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id=r#"^org\.mozilla\.firefox$"#
|
match app-id="firefox$"
|
||||||
|
|
||||||
open-maximized true
|
open-maximized true
|
||||||
}
|
}
|
||||||
@@ -323,7 +323,7 @@ Make the window open in the floating layout.
|
|||||||
```kdl
|
```kdl
|
||||||
// Open the Firefox picture-in-picture window as floating.
|
// Open the Firefox picture-in-picture window as floating.
|
||||||
window-rule {
|
window-rule {
|
||||||
match app-id=r#"^org\.mozilla\.firefox$"# title="^Picture-in-Picture$"
|
match app-id="firefox$" title="^Picture-in-Picture$"
|
||||||
|
|
||||||
open-floating true
|
open-floating true
|
||||||
}
|
}
|
||||||
@@ -391,7 +391,7 @@ window-rule {
|
|||||||
> ```kdl
|
> ```kdl
|
||||||
> window-rule {
|
> window-rule {
|
||||||
> // Doesn't quite work! Try to block out the Gmail tab.
|
> // Doesn't quite work! Try to block out the Gmail tab.
|
||||||
> match app-id=r#"^org\.mozilla\.firefox$"# title="- Gmail "
|
> match app-id="firefox$" title="- Gmail "
|
||||||
>
|
>
|
||||||
> block-out-from "screencast"
|
> block-out-from "screencast"
|
||||||
> }
|
> }
|
||||||
|
|||||||
Reference in New Issue
Block a user