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

Windowrule 'xray 0' forces opaque window #6161

Open
calebaden opened this issue May 20, 2024 · 2 comments
Open

Windowrule 'xray 0' forces opaque window #6161

calebaden opened this issue May 20, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@calebaden
Copy link

calebaden commented May 20, 2024

Hyprland Version

System/Version info
Hyprland, built from branch main at commit 2ead1fd22103ce065661555513bace5897083ded  (virtual-keyboard: emit event before finishing keyboard).
Date: Sat May 18 05:07:33 2024
Tag: v0.40.0-111-g2ead1fd2, commits: 4717

flags: (if any)


System Information:
System name: Linux
Node name: arch
Release: 6.9.1-arch1-1
Version: #1 SMP PREEMPT_DYNAMIC Fri, 17 May 2024 16:56:38 +0000


GPU information: 
2d:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 23 [Radeon RX 6600/6600 XT/6600M] [1002:73ff] (rev c1) (prog-if 00 [VGA controller])


os-release: NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo


plugins:

Bug or Regression?

Bug

Description

Using a config with xray=true and then using a windowrule with xray 0 on a window with a transparent background results in that window being completely opaque.

How to reproduce

  1. Use the below settings in your hyprland config to enable blur and xray, and to disable blur on a specific window of your choice.
decoration {
    blur {
        enabled = true
        xray = true
    }
}

windowrulev2 = xray 0,class:^(kitty)$
  1. Edit the background opacity of your window of choice to be below 1.0 (eg. background_opacity in ~/.config/kitty/kitty.conf
  2. Open the window

Crash reports, logs, images, videos

2024-05-20-102426_hyprshot

@calebaden calebaden added the bug Something isn't working label May 20, 2024
@The-Briel-Deal
Copy link
Contributor

The-Briel-Deal commented May 20, 2024

Uhhh. When I do this it makes my windows fully translucent?

decoration {
    blur {
        enabled = true
        xray = true
    }
}

windowrulev2 = opacity 0,class:^(kitty)$
windowrulev2 = xray 0,class:^(kitty)$

And when I leave opacity above 0 like at .85 its still transparent, just not as much so?

Can you provide your full config?

And what is the behavior you expect?

@calebaden
Copy link
Author

Sorry I should clarify, the opacity needs to be set in the application not the hyprland config. So for kitty it would be background_opacity 0.85 in ~/.config/kitty/kitty.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants