diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-24 08:44:21 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-24 08:44:21 +0400 |
| commit | ab9d1aab4ed13027896a80200775e5679fca9539 (patch) | |
| tree | 42b5500e74b0fe7fb657c62e404b8a832d7b15d7 | |
| parent | 506dcd99d7fafbe94f0444aed46c2f89f29612da (diff) | |
| download | niri-ab9d1aab4ed13027896a80200775e5679fca9539.tar.gz niri-ab9d1aab4ed13027896a80200775e5679fca9539.tar.bz2 niri-ab9d1aab4ed13027896a80200775e5679fca9539.zip | |
Add open-fullscreen window rule
| -rw-r--r-- | niri-config/src/lib.rs | 4 | ||||
| -rw-r--r-- | resources/default-config.kdl | 5 | ||||
| -rw-r--r-- | src/handlers/xdg_shell.rs | 10 | ||||
| -rw-r--r-- | src/window.rs | 3 |
4 files changed, 20 insertions, 2 deletions
diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index e8d41764..2b40e7a9 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -585,6 +585,8 @@ pub struct WindowRule { pub open_on_output: Option<String>, #[knuffel(child, unwrap(argument))] pub open_maximized: Option<bool>, + #[knuffel(child, unwrap(argument))] + pub open_fullscreen: Option<bool>, } #[derive(knuffel::Decode, Debug, Default, Clone)] @@ -1065,6 +1067,7 @@ mod tests { open-on-output "eDP-1" open-maximized true + open-fullscreen false } binds { @@ -1225,6 +1228,7 @@ mod tests { }], open_on_output: Some("eDP-1".to_owned()), open_maximized: Some(true), + open_fullscreen: Some(false), ..Default::default() }], binds: Binds(vec