Skip to content

Add support for mixed percentage/pixel in one axis of a layout value#908

Open
Shiphan wants to merge 1 commit intohyprwm:mainfrom
Shiphan:main
Open

Add support for mixed percentage/pixel in one axis of a layout value#908
Shiphan wants to merge 1 commit intohyprwm:mainfrom
Shiphan:main

Conversation

@Shiphan
Copy link
Copy Markdown

@Shiphan Shiphan commented Nov 4, 2025

This add support for this syntax: position = 5% + 122, 40%, useful for placing multiple widgets with a constant gap to a relative position

lock

@Shiphan Shiphan marked this pull request as draft November 4, 2025 04:08
@Shiphan Shiphan marked this pull request as ready for review November 4, 2025 11:16
Copy link
Copy Markdown
Member

@vaxerski vaxerski left a comment

Choose a reason for hiding this comment

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

at this point please do not repeat Hyprland's mistakes and just include an expression parser like e.g. https://github.com/ArashPartow/exprtk

Choice of an engine is up to you, I didn't do the research, just please justify.

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