diff --git a/hosts/adventurer.toml b/hosts/adventurer.toml index c357492..d42a805 100644 --- a/hosts/adventurer.toml +++ b/hosts/adventurer.toml @@ -29,3 +29,7 @@ background_path = "~/.local/share/backgrounds/adventurer/t.jpg" match = "Pioneer Electronic Corporation AV Receiver Unknown" mode = "3840x2160@60Hz" scale = 2 + +[niri] +# 1/3 proportion is better for the ultrawide +default_column_width = 0.33333 diff --git a/install.py b/install.py index 067841e..ccd3f66 100755 --- a/install.py +++ b/install.py @@ -145,6 +145,11 @@ class OutputConfig: } +@define +class NiriConfig: + default_column_width: float = 0.5 + + @define class HostConfig: name: str @@ -164,6 +169,7 @@ class HostConfig: use_jump_host: bool = False inputs: list[InputConfig] = field(factory=list) outputs: list[OutputConfig] = field(factory=list) + niri: NiriConfig = field(factory=NiriConfig) @property def swaylock_images(self) -> str: diff --git a/templates/.config/niri/config.kdl b/templates/.config/niri/config.kdl index 3a44faa..c924d2a 100644 --- a/templates/.config/niri/config.kdl +++ b/templates/.config/niri/config.kdl @@ -100,7 +100,7 @@ layout { // preset-window-heights { } // You can change the default width of the new windows. - default-column-width { proportion 0.5; } + default-column-width { proportion ${host.niri.default_column_width}; } // If you leave the brackets empty, the windows themselves will decide their initial width. // default-column-width {}