niri: per-host default column width, default 0.5, ultrawide gets 1/3
This commit is contained in:
parent
178bafe954
commit
53c3e49256
3 changed files with 11 additions and 1 deletions
|
@ -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
|
||||
|
|
|
@ -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:
|
||||
|
|
|
@ -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 {}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue