Skip to content

Adds per-monitor layout matching with wildcards, resolution etc… - #215

Open
MarcinOrlowski wants to merge 2 commits into
gerritdevriese:mainfrom
MarcinOrlowski:214-layout-per-display-p2
Open

MarcinOrlowski wants to merge 2 commits into
gerritdevriese:mainfrom
MarcinOrlowski:214-layout-per-display-p2

Conversation

@MarcinOrlowski

@MarcinOrlowski MarcinOrlowski commented Aug 15, 2026

Copy link
Copy Markdown

BTW bug fix - Fixed a bug in getCurrentLayout(): if (!screenLayouts[key]) treated a remembered layout 0 as unset. Harmless before, but it has to be an undefined check now that the stored value is validated against the applicable set.

Closes #214 <-- main ticket

Closes #199
Closes #107
Closes #209

@KernicDE

Copy link
Copy Markdown

Tested this locally on KDE Plasma 6.7.4 (Wayland) with two monitors:

  • DP-1: 3440x1440 (horizontal)
  • DP-2: 1080x1920 (vertical)

Created per-monitor layouts using match with display + resolution and it works as expected. Each screen only sees the layouts matching its criteria, and cycling only goes through the applicable ones.

Thanks for the more comprehensive approach compared to the simple screen-name filter I had drafted.

@jarpoole

Copy link
Copy Markdown

I also just tested this on Plasma 6.7.4 (Frameworks 6.29.0, Qt 6.11.1) on NixOS 26.11, Wayland with a triple monitor setup and it works beautifully!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Per-monitor layout matching Per Monitor Defaults [Feature request] Ability to define per-monitor layouts.

3 participants