Skip to content

Add per-monitor default layout selection via monitor property#185

Open
Kaysera wants to merge 2 commits into
gerritdevriese:mainfrom
Kaysera:feat/defaultmonitor
Open

Add per-monitor default layout selection via monitor property#185
Kaysera wants to merge 2 commits into
gerritdevriese:mainfrom
Kaysera:feat/defaultmonitor

Conversation

@Kaysera

@Kaysera Kaysera commented Jan 28, 2026

Copy link
Copy Markdown

Description

This PR adds support for per-monitor default layouts by introducing an optional "monitor" property in layout definitions.

When present, the layout is automatically selected as the default for the specified monitor on startup. This allows different monitors to use different default zone layouts without manual selection after login.

Configuration example

{
  "name": "Ultrawide layout",
  "padding": 0,
  "monitor": "DP-1",
  "zones": [
    ...
  ]
}

"monitor" matches the KWin output name

Layouts without this property behave exactly as before

Behavior

On startup, KZones will assign layouts with a matching "monitor" to that output

Monitors without a match fall back to the first defined layout

If multiple layouts match the same monitor, the first one is used

This allows for multi-monitor setups to have separate defaults

Compatibility

Fully backward compatible

No changes required to existing configs

@zjDrummond

Copy link
Copy Markdown

Sounds like a great idea.

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.

2 participants