hyprwm / Hyprland

Hyprland is an independent, highly customizable, dynamic tiling Wayland compositor that doesn't sacrifice on its looks.
https://hyprland.org
BSD 3-Clause "New" or "Revised" License
19.54k stars 821 forks source link

"layerrule = blur" makes a transparent waybar opaque until a window is launched #6130

Open Aqa-Ib opened 3 months ago

Aqa-Ib commented 3 months ago

Hyprland Version

System/Version info ```sh Hyprland, built from branch main at commit 2ead1fd22103ce065661555513bace5897083ded (virtual-keyboard: emit event before finishing keyboard). Date: Fri May 17 21:07:33 2024 Tag: v0.40.0-111-g2ead1fd2, commits: 4717 flags: (if any) System Information: System name: Linux Node name: beast Release: 6.8.9-zen1-2-zen Version: #1 ZEN SMP PREEMPT_DYNAMIC Tue, 07 May 2024 22:06:02 +0000 GPU information: 03:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Navi 22 [Radeon RX 6700/6700 XT/6750 XT / 6800M/6850M XT] [1002:73df] (rev df) (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

When booting up hyprland, waybar do not have transparency until launching a window.

Hyprland just booted up: image

Hyprland and waybar after opening a window: image

How to reproduce

You need to start a new hyprland session (without any window opened in the session) for waybar to be opaque. When a window is launched, it becomes transparent until the end of the session.

hyprland.conf needs the option layerrule = blur, waybar

waybar/config.jsonc needs to have the option "layer": "top",

With "layer": "bottom", there is no bug.

waybar/style.css needs transparency, for example: window#waybar { background-color: rgba(00,00,00,00); }

Waybar config: config.jsonc style.css.txt (I had to call this style.css.txt instead of style.css because of github restrictions).

Crash reports, logs, images, videos

No response

izmyname commented 1 month ago

Does it still happen? I couldn't repro, on my side.

Aqa-Ib commented 1 month ago

Yes, it still happens on main. Cheers, happy birthday Vaxry !