diff options
| author | Danilo M. <danix@danix.xyz> | 2026-11-10 10:06:05 +0100 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-11-10 10:06:05 +0100 |
| commit | d10f2cc00c1091f63e335df1d6913c7abddf06e5 (patch) | |
| tree | 8f4ef6c95f364721d0d2d3d8d4e2b73517ef95a0 /desktop/modules/monitors/Mon.js | |
| parent | b5654d5ad7642d755ce7054ffbc281b0bc84c505 (diff) | |
| download | quickshell-d10f2cc00c1091f63e335df1d6913c7abddf06e5.tar.gz quickshell-d10f2cc00c1091f63e335df1d6913c7abddf06e5.zip | |
monitors: leave virtual outputs such as deck-it's TAB alone
deck-it creates a headless TAB output at runtime and places it itself,
centred under DP-1. Listed on the Monitors page, Apply would reposition
it and Keep would pin it into monitors.lua, where it would outlive the
tablet. Mon.js's UNMANAGED drops it from the page entirely.
The list is fixed: deck-it's display.name can rename the output, and a
renamed one shows up here again (a ponytail ceiling, noted in Mon.js).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'desktop/modules/monitors/Mon.js')
| -rw-r--r-- | desktop/modules/monitors/Mon.js | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/desktop/modules/monitors/Mon.js b/desktop/modules/monitors/Mon.js index 865e155..5d63336 100644 --- a/desktop/modules/monitors/Mon.js +++ b/desktop/modules/monitors/Mon.js @@ -18,6 +18,16 @@ const AUTO = ["auto", "auto-left", "auto-right", "auto-up", "auto-down", "auto-center-left", "auto-center-right", "auto-center-up", "auto-center-down"]; +// Outputs the page leaves alone, so Apply never repositions them and Keep +// never writes a line that pins them: a virtual display is created with its +// own placement and should keep it. +// ponytail: a fixed list; a per-monitor toggle once more than one appears. +const UNMANAGED = ["TAB"]; + +function managed(list) { + return list.filter(m => !UNMANAGED.includes(m.name)); +} + // availableModes ("1920x1080@120.00Hz") without the suffix, duplicates // dropped: the ASUS lists 120Hz twice. function modes(avail) { |
