Hyprland icon indicating copy to clipboard operation
Hyprland copied to clipboard

windowrule "opacity" is not override

Open System-x64 opened this issue 3 years ago • 5 comments
trafficstars

https://user-images.githubusercontent.com/90208727/199522898-b9c3c0c4-642d-4b72-9891-97f5d10a107c.mp4

Ok..say i've set my alacritty windowrule to have some transparency...the first time I focus the app, the opacity is as specified however on opening another app and focusing back on the previous one the opacity for some reason gets below the specified amount...this only happens when an app has windowrule transparency not regular apps so could we maybe make it so that the windowrule opacity literally overrides the active_opacity setting and makes sure the window stays at the specified opacity? Basically I don't want its opacity to keep changing even after setting my active_opacity to 1.

and i've read that note at the bottom of the window rules tab...but still won't this approach make it just simpler to setup?

System-x64 avatar Nov 02 '22 15:11 System-x64

should be fixed with 5b548f5bc352a09bf9cf46a8eee0888abbcb2cec (please check)

No, the behavior will not change.

vaxerski avatar Nov 02 '22 15:11 vaxerski

should be fixed with 5b548f5 (please check)

Nope, still the same thing

No, the behavior will not change.

But then is there any way i could possibly make sure the window stays at the set opacity?

System-x64 avatar Nov 02 '22 15:11 System-x64

can you send me your config?

vaxerski avatar Nov 02 '22 15:11 vaxerski

Sure

hyprland.txt

System-x64 avatar Nov 02 '22 15:11 System-x64

I think have the same problem on NixOS.

I also have every opacity set to 1 but then defined a windowrulev2 for every window I want to make opaque.

but for me, it kinda acts differently: When I open any window that I defined opacity for, the initial opacity is lower than what I defined after that it acts the same: focused less opaque, unfocused actually defined opaque

quantenzitrone avatar Nov 11 '22 23:11 quantenzitrone

still present on my hyprland-git

EvilBoi123 avatar Nov 25 '22 13:11 EvilBoi123

Same problem here: all windows have the set opacity, but the focused window has less opacity. I understand some people like to make unfocused windows more transparent, but here it's the other way around. Very strange behavior.

In my case, I want focused and unfocused windows to have the same opacity. Is this not possible? @vaxerski

zjeffer avatar Dec 11 '22 14:12 zjeffer

set the setting decoration.active_opacity and decoration.inactive_opacity to your desired value and leave windowrules untouched this is what worked for me tho it is very limiting

quantenzitrone avatar Dec 11 '22 15:12 quantenzitrone

Sure, but that is for all windows, correct? I only want certain windows to have transparency.

zjeffer avatar Dec 11 '22 16:12 zjeffer

yup but you can define exceptions with windowrules

quantenzitrone avatar Dec 11 '22 16:12 quantenzitrone

e8b99ae13a0525f9fbd6899fe39fe723879f86b9

examples

windowrule = opacity 1.0 override,kitty
windowrule = opacity 1.0 override 0.5 override,kitty

vaxerski avatar Dec 11 '22 17:12 vaxerski