Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

widgets: add support for specifing size and position options via percentages of output dimensions #541

Merged
merged 5 commits into from
Nov 6, 2024

Conversation

PaideiaDilemma
Copy link
Contributor

@PaideiaDilemma PaideiaDilemma commented Nov 2, 2024

Adds the ability to specify size and position options as percentages of the output viewport.
E.g.

position = 10%, 10%
size = 10%,5%

This is allowed:

position = 10%, 10

Question: Do we want to support a px suffix to allow more explicitness? This is also allowed:

position = 10%, 10px

To allow users to make layouts that are independent of the output viewport we are missing label:font_size and image:size (which should be image:scale fmpov, but for some reason it was named size...)
But I think it is easier for us to do that in a separate MR.

Part 1 to implement #261
Closes #446 (halgin=left and position = 50%, 0)

@vaxerski
Copy link
Member

vaxerski commented Nov 4, 2024

wiki mr needed

@vaxerski vaxerski merged commit 4fc133c into hyprwm:main Nov 6, 2024
1 check passed
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.

Text doesn't align correctly
2 participants