Skip to content

Support width/height as fractions in window rules. Closes #552#597

Open
levnikmyskin wants to merge 1 commit intomangowm:mainfrom
levnikmyskin:main
Open

Support width/height as fractions in window rules. Closes #552#597
levnikmyskin wants to merge 1 commit intomangowm:mainfrom
levnikmyskin:main

Conversation

@levnikmyskin
Copy link
Contributor

@levnikmyskin levnikmyskin commented Jan 21, 2026

What does this PR add?

This PR adds support for specifying windows' width and height as a fraction of the screen real estate. See #552 as to why this is useful

Changes

  • in window rules, width and height can now be specified also as a float between 0 and 1. If they are, then the window's width and height are computed based on the monitor screen estate

if width/height are specified with a number above 1, previous behaviour applies.

Possible improvements

  • this should be documented in the wiki, I can open a PR there if you wish

@DreamMaoMao DreamMaoMao force-pushed the main branch 3 times, most recently from c43f8e3 to 30692f6 Compare January 28, 2026 01:40
@DreamMaoMao DreamMaoMao force-pushed the main branch 3 times, most recently from e357c8f to 6b79a43 Compare February 9, 2026 03:18
@DreamMaoMao DreamMaoMao force-pushed the main branch 3 times, most recently from d31d43c to 68075c0 Compare February 19, 2026 03:27
@DreamMaoMao DreamMaoMao force-pushed the main branch 2 times, most recently from dc016eb to 6b2d694 Compare February 22, 2026 03:52
@DreamMaoMao DreamMaoMao force-pushed the main branch 3 times, most recently from 673ec40 to db30977 Compare March 9, 2026 05:28
@DreamMaoMao DreamMaoMao force-pushed the main branch 2 times, most recently from 17ff2ad to 064bcad Compare March 23, 2026 02:56
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.

1 participant