Skip to content

add niri-outputs plugin to manage displays in niri#217

Open
adrlau wants to merge 1 commit intonoctalia-dev:mainfrom
adrlau:niri-outputs
Open

add niri-outputs plugin to manage displays in niri#217
adrlau wants to merge 1 commit intonoctalia-dev:mainfrom
adrlau:niri-outputs

Conversation

@adrlau
Copy link

@adrlau adrlau commented Feb 5, 2026

Adds a gui to rearrange displays in niri, using the niri msg command interface.

Ai tools where used to develop this, but it is tested and seemed to work nice.

readonly property real barHeight: Style.getBarHeightForScreen(screenName)
readonly property real capsuleHeight: Style.getCapsuleHeightForScreen(screenName)

implicitWidth: capsuleHeight
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

NIconButton would be better here, it would respect all the capsule and hover state automatically.

fix: correctly access main instance in panel and add debug logging

feat: Add niri outputs plugin
@adrlau
Copy link
Author

adrlau commented Feb 6, 2026

Used the NICONButton like you said.
Cleaned up the code a bit as well and added more localisations. (Also used the i18n in the code)

applyUiScale: false
icon: "device-desktop"
tooltipText: "Display Configuration"
tooltipDirection: BarService.getTooltipDirection()
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you need BarService.getTooltipDirection(screenName) (for different bars per screen)


colorBg: Style.capsuleColor
colorFg: Color.mOnSurface
colorBorder: "transparent"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You alsso need, So it follows styling
border.color: Style.capsuleBorderColor
border.width: Style.capsuleBorderWidth

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