diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-23 14:24:39 +0400 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2024-02-23 14:24:39 +0400 |
| commit | 6a587245eb79a0e054c7283eb2a97d694482e834 (patch) | |
| tree | c0359757539c59f4cdfd1e0412c383788e67676c | |
| parent | 2317021a7c4a7296606533d38f1fdce96826f7dc (diff) | |
| download | niri-6a587245eb79a0e054c7283eb2a97d694482e834.tar.gz niri-6a587245eb79a0e054c7283eb2a97d694482e834.tar.bz2 niri-6a587245eb79a0e054c7283eb2a97d694482e834.zip | |
Add open-maximized window rule
| -rw-r--r-- | niri-config/src/lib.rs | 4 | ||||
| -rw-r--r-- | resources/default-config.kdl | 3 | ||||
| -rw-r--r-- | src/handlers/compositor.rs | 22 | ||||
| -rw-r--r-- | src/handlers/xdg_shell.rs | 14 | ||||
| -rw-r--r-- | src/window.rs | 6 |
5 files changed, 41 insertions, 8 deletions
diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index 77642813..e8d41764 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -583,6 +583,8 @@ pub struct WindowRule { pub default_column_width: Option<DefaultColumnWidth>, #[knuffel(child, unwrap(argument))] pub open_on_output: Option<String>, + #[knuffel(child, unwrap(argument))] + pub open_maximized: Option<bool>, } #[derive(knuffel::Decode, Debug, Default, Clone)] @@ -1062,6 +1064,7 @@ mod tests { exclude title="~" open-on-output "eDP-1" + open-maximized true } binds { @@ -1221,6 +1224,7 @@ mod tests { title: Some(Regex::new("~").unwrap()), }], open_on_output: Some("eDP-1".to_owned()), + open_maximized: Some(true), ..Default::default() }], binds: Binds(vec