Skip to content

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

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

Support width/height as fractions in window rules. Closes #552#597
levnikmyskin wants to merge 1 commit intoDreamMaoMao: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

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