Files
command-center/dotfiles/zz-blankpad/niri/.config/niri/cfg/desk-2-portable.kdl
T
Frank 9b8820827c niri: desk-2 panels landscape, HDMI to the left of the laptop
Frank asked for normal rotation on both PM1601 panels and the HDMI-A-1
panel to the left of eDP-1. rotation drops 90 -> normal, so each panel
goes 1200x1920 -> 1920x1200 and the absolute x of everything to its
right moves with it: HDMI-A-1 now x=0, eDP-1 x=1920 (y=60, centred
against the taller panels), DP-2 x=3840. modes unchanged.
2026-10-30 15:56:35 -07:00

51 lines
2.0 KiB
KDL

// ────────────── Desk Profile: portable (second desk) ──────────────
// Two PM1601 16" panels, landscape, flanking the laptop panel.
// Applied by symlinking this file to cfg/display.kdl (see scripts/desk.sh).
// Panels are keyed by EDID identity, NOT by connector name — connector names
// reshuffle between docks; identity travels with the panel. Long names copied
// verbatim from `niri msg outputs` (2026-10-30).
//
// requires: Lenovo Group Limited 0x40A9 Unknown
// requires: PNP(XYM) PM1601 0000000000000
// requires: PNP(XYM) PM1601 demoset-1
//
// Layout (logical, y grows downward; three 1920-wide columns):
//
// ┌──────────┬──────────────┬──────────┐
// │ PM1601 │ │ PM1601 │
// │ 1920x1200│ eDP-1 │ 1920x1200│
// │(HDMI-A-1)│ 1920x1080 │ (DP-2) │
// │ │ │ │
// └──────────┴──────────────┴──────────┘
// x=0,y=0 x=1920,y=60 x=3840,y=0
//
// HDMI-A-1 sits to the LEFT of the laptop by request (2026-10-30); DP-2 stays
// on its right. The laptop is 60 px down so it is centred against the taller
// 1200 px panels — no dead corner where the cursor crosses.
// Modes are the panels' reported preferred modes, copied verbatim: niri
// matches mode strings exactly and silently falls back to preferred on a
// miss, so a typo here costs the refresh rate without an error.
// Reasoning: omp-docs/tools/niri/displays.md ("The config pattern").
output "Lenovo Group Limited 0x40A9 Unknown" {
mode "1920x1080@60.001"
scale 1.0
transform "normal"
position x=1920 y=60
focus-at-startup
}
output "PNP(XYM) PM1601 demoset-1" {
mode "1920x1200@59.950"
scale 1.0
transform "normal"
position x=0 y=0
}
output "PNP(XYM) PM1601 0000000000000" {
mode "1920x1200@59.950"
scale 1.0
transform "normal"
position x=3840 y=0
}