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

Allow setting per-window fullscreen opacity #5470

Merged
merged 1 commit into from Apr 7, 2024

Conversation

SoSeDiK
Copy link
Contributor

@SoSeDiK SoSeDiK commented Apr 7, 2024

Describe your PR, what does it fix/add?

Currently, Hyprland has three global window opacity rules: active, inactive, fullscreen.
The first two can be set on a per-window basis. This PR adds the ability to set individual window opacity for fullscreen as well.
Resolves #2663.

Window rule now allows specifying third parameter for fullscreen:

windowrulev2 = opacity 0.95 override 0.9 override 0.6 override, class:(kitty)

Or with hyprctl:

hyprctl setprop address:$window_address alphafullscreen $alpha_fullscreen lock
hyprctl setprop address:$window_address alphafullscreenoverride 1 lock

Is there anything you want to mention? (unchecked code, possible bugs, found problems, breaking compatibility, etc.)

Specifying a singular value for window rule is applying it for both active and inactive window states. With this change, it'll also apply for fullscreen state. That's completely fine by me, but I'm not sure if that's wanted/expected behavior, or if fullscreen should instead fallback to the global value unless specified explicitly.

hyprctl completions were generated by complgen command inside hyprctl.usage.

Is it ready for merging, or does it need work?

Should be ready. Will make a PR to wiki as well if everything's fine.

vaxerski
vaxerski previously approved these changes Apr 7, 2024
Copy link
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.

generally ok, wiki mr needed

@vaxerski
Copy link
Member

vaxerski commented Apr 7, 2024

conflicts :/

@SoSeDiK
Copy link
Contributor Author

SoSeDiK commented Apr 7, 2024

Rebased

@vaxerski vaxerski merged commit 43b96f0 into hyprwm:main Apr 7, 2024
9 checks passed
@SoSeDiK SoSeDiK deleted the fullscreen-alpha branch April 7, 2024 22:43
lisuke pushed a commit to lisuke/Hyprland that referenced this pull request Apr 15, 2024
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.

None yet

2 participants