diff options
| author | Ivan Molodetskikh <yalterz@gmail.com> | 2025-09-25 18:15:46 +0300 |
|---|---|---|
| committer | Ivan Molodetskikh <yalterz@gmail.com> | 2025-10-02 09:33:08 +0300 |
| commit | 09cf8402c3e25fbe4ab790cb997ae4033f9d30f3 (patch) | |
| tree | ff392b541f40d9cde3604b1aa27cf5a0c60a7cd2 /niri-config/src | |
| parent | a5e285865b97c008549b60aac29c6a14b7f4f8c0 (diff) | |
| download | niri-09cf8402c3e25fbe4ab790cb997ae4033f9d30f3.tar.gz niri-09cf8402c3e25fbe4ab790cb997ae4033f9d30f3.tar.bz2 niri-09cf8402c3e25fbe4ab790cb997ae4033f9d30f3.zip | |
Add per-output layout config
Diffstat (limited to 'niri-config/src')
| -rw-r--r-- | niri-config/src/lib.rs | 1 | ||||
| -rw-r--r-- | niri-config/src/output.rs | 6 |
2 files changed, 6 insertions, 1 deletions
diff --git a/niri-config/src/lib.rs b/niri-config/src/lib.rs index e969b250..4f2cf455 100644 --- a/niri-config/src/lib.rs +++ b/niri-config/src/lib.rs @@ -791,6 +791,7 @@ mod tests { bottom_right: true, }, ), + layout: None, }, ], ), diff --git a/niri-config/src/output.rs b/niri-config/src/output.rs index b0e1d26c..62c14705 100644 --- a/niri-config/src/output.rs +++ b/niri-config/src/output.rs @@ -1,7 +1,7 @@ use niri_ipc::{ConfiguredMode, Transform}; use crate::gestures::HotCorners; -use crate::{Color, FloatOrInt}; +use crate::{Color, FloatOrInt, LayoutPart}; #[derive(Debug, Default, Clone, PartialEq)] pub struct Outputs(pub Vec<Output>); @@ -24,12 +24,15 @@ pub struct Output { pub variable_refresh_rate: Option<Vrr>, #[knuffel(child)] pub focus_at_startup: bool, + // Deprecated; use layout.background_color. #[knuffel(child)] pub background_color: Option<Color>, #[knuffel(child)] pub backdrop_color: Option<Color>, #[knuffel(child)] pub hot_corners: Option<HotCorners>, + #[knuffel(child)] + pub layout: Option<LayoutPart>, } impl Output { @@ -60,6 +63,7 @@ impl Default for Output { background_color: None, backdrop_color: None, hot_corners: None, + layout: None, } } } |
