feat(niri-displays): add rotation, position, and display layout - #443
Open
psukez wants to merge 2 commits into
Open
feat(niri-displays): add rotation, position, and display layout#443psukez wants to merge 2 commits into
psukez wants to merge 2 commits into
Conversation
- Add a per-display rotation (transform) selector, mapping niri transform names to `niri msg output <connector> transform` values. - Add a unified "Display layout" section: a live mini-map, direction buttons that snap the selected display to a side of the reference display, an offset slider, and an explicit Apply button. - Make layout math rotation-aware: sideways transforms (90/270, flipped-90/270) swap logical width/height. - Compact display cards (two per row) and tighten panel spacing.
Contributor
|
CC @raycursive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Plugin
raycursive/niri-displaysplugin.toml)What it does
Adds rotation (transform), position, and a unified Display layout panel to the existing
niri-displaysplugin.transformIPC.positionIPC.Users get full temporary control over how their monitors are arranged and oriented, directly from the Noctalia panel, without editing
config.kdl.External dependencies
niri— the plugin shells out toniri msgto read output state (niri msg --json outputs,niri msg --json focused-output) and to apply changes (niri msg output <connector> mode/scale/transform/position ...). Listed inplugin.tomlunderdependencies.Testing
Screenshots / Videos
The unified Display layout panel:
The panel with the new rotation, position, and display-layout controls:
Checklist
Ready-for-review requirement: Every box in this section must be checked.
idafter the/inplugin.tomlexactly.plugin.toml,README.md,thumbnail.webp, andtranslations/en.json.README.mdfollows the README template, documents every entry id and dependency, and includes exact panel IPC commands and launcher prefixes where applicable.thumbnail.webpwith the thumbnail generator.versionfollows semver and is bumped in this PR;plugin_apiis the oldest API level this plugin requires.catalog.toml; CI generates it.Code review attestation
Plugins run as trusted, unsandboxed Luau in the user's session. Confirm:
licensedeclared inplugin.toml.