mirror of
https://github.com/nickolaj-jepsen/nixos.git
synced 2026-01-22 16:16:50 +01:00
refactor(niri): base niri.outputs on config.monitors
This commit is contained in:
parent
ba100b98ba
commit
1bed4d5d9f
10 changed files with 133 additions and 119 deletions
|
|
@ -101,16 +101,13 @@ in {
|
|||
else "";
|
||||
resolution =
|
||||
if m.resolution != null
|
||||
then m.resolution
|
||||
then "${builtins.toString m.resolution.width}x${builtins.toString m.resolution.height}"
|
||||
else "preferred";
|
||||
refreshRate =
|
||||
if m.refreshRate != null
|
||||
then "@${builtins.toString m.refreshRate}"
|
||||
else "";
|
||||
position =
|
||||
if m.position != null
|
||||
then m.position
|
||||
else "auto";
|
||||
position = "${builtins.toString m.position.x}x${builtins.toString m.position.y}";
|
||||
transform =
|
||||
if m.transform != null
|
||||
then ", transform, ${builtins.toString m.transform}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue