hyprland-plugins icon indicating copy to clipboard operation
hyprland-plugins copied to clipboard

hyprwinwrap: Not Showing Through Transparent Window When Floating

Open shadowe1ite opened this issue 1 year ago • 16 comments

HyperWinWrap not showing through transparent window when floating

https://github.com/hyprwm/hyprland-plugins/assets/54718375/c0f05af4-8de3-4408-a045-7eb43f1bca91

shadowe1ite avatar Jul 05 '24 16:07 shadowe1ite

HyperWinWrap not showing through transparent window when floating 2024-07-05_21-48-58.mp4

I think that this is related to the following blur option: ignore_opacity = true Try disabling it and let me know if it's the same on your end. I am well aware that the option is required, blur looks disgusting without it, just wanna see if that's the cause.

nnra6864 avatar Jul 06 '24 09:07 nnra6864

ignore_opacity = true

still the same

shadowe1ite avatar Jul 06 '24 10:07 shadowe1ite

Ah, could be this other thing. Are you making the terminal transparent in the terminal cfg or via hyprland window rules? If it's the first, take a look at the issue I created recently: #167

nnra6864 avatar Jul 06 '24 10:07 nnra6864

prob fixed

atikiNBTW avatar Aug 17 '24 09:08 atikiNBTW

prob fixed

It isn't

nnra6864 avatar Aug 17 '24 10:08 nnra6864

prob fixed

It isn't

isn't it the same as #167?

atikiNBTW avatar Aug 17 '24 10:08 atikiNBTW

isn't it the same as #167?

Nope, #167 refers to hyprwinwrap not being visible through apps that use native transparency. This issue is hyprwinwrap not being visible through tiled windows. As I said in #167, I'll make a separate bug report with some additional info soon because I am suspecting this to be a bug on hyprland side and not hyprwinwrap.

nnra6864 avatar Aug 17 '24 15:08 nnra6864

Hey, it works when you disable decoration:blur:new_optimizations For anyone still looking for a solution. Technically a dupe of #91. Have a great day!

SchweGELBin avatar Jan 03 '25 01:01 SchweGELBin

Hey, it works when you disable decoration:blur:new_optimizations For anyone still looking for a solution. Technically a dupe of #91. Have a great day!

Yup, already mentioned the solution in #212

nnra6864 avatar Jan 03 '25 07:01 nnra6864

@nnra6864 Thank you very much! I didn't find your issue here. Can you tell me which program/config you use for hyprwinwrap? It looks pretty nice.

SchweGELBin avatar Jan 03 '25 09:01 SchweGELBin

@nnra6864 Thank you very much! I didn't find your issue here. Can you tell me which program/config you use for hyprwinwrap? It looks pretty nice.

Sure, I used to use swww + GLava with my own config. However, I decided to make my own visualizer app, Nisualizer, and I'm on that now. It's still very early in development and I'd highly advise against using it but you are free to take a look.

nnra6864 avatar Jan 03 '25 13:01 nnra6864

Thank you for your response. Your app looks very promising. I'm looking for the circular version instead of the bars version of cava. GLava is pretty dated and I just can't figure out, how to do it. Can you help me with it?

Sorry that I am asking here; it's probably not the right place.

Have a great day!

Edit: Sorry, I didn't read your message properly. Thank you for providing your config!

SchweGELBin avatar Jan 03 '25 23:01 SchweGELBin

Thank you for your response. Your app looks very promising. I'm looking for the circular version instead of the bars version of cava. GLava is pretty dated and I just can't figure out, how to do it. Can you help me with it?

Sorry that I am asking here; it's probably not the right place.

Have a great day!

Sure, I'd be up to help you set it up. You can add me on discord _nnra so we don't spam this issue.

nnra6864 avatar Jan 04 '25 00:01 nnra6864

Here it randomly works sometimes, I can't figure the sequence to "enable" it, but most of the time I get nothing in the background instead of the hyprwinwrap content. It also creates random issues (focus, windows visibility, ...) after some time (also quite random).

Hyprland 0.49.0 built from branch  at commit 9958d297641b5c84dcff93f9039d80a5ad37ab00  (version: bump to 0.49.0).
Date: Thu May 8 20:15:18 2025
Tag: v0.49.0, commits: 6098
built against:
 aquamarine 0.8.0
 hyprlang 0.6.3
 hyprutils 0.7.1
 hyprcursor 0.1.12
 hyprgraphics 0.1.3

fdev31 avatar Jun 15 '25 23:06 fdev31

Hey @fdev31, I don't really have any problems with hyprwinwrap anymore. Here are some parts of my config: I didn't test it, but something like this should work.

{ pkgs, ... }:
let
    username = "cooluser";
in
{
    wayland.windowManager.hyprland = {
        plugins = with pkgs.hyprlandPlugins; [ hyprwinwrap ];
        settings = {
            bindd = [ "SUPER, B, Toggle Cava Background, exec, avabg c t" ];
            decoration.blur.new_optimizations = false;
            exec-once = [ "avabg c" ];
            plugin.hyprwinwrap.class = "hyprbg";
        };
    };
    
    xdg.configFile."alacritty/cava.toml".text = ''
        [window]
        opacity = 0.0
    '';
    
    home.packages = [
        (pkgs.writeShellScriptBin "avabg" ''
            pkill cava
            pkill glava
            if [[ $2 == "t" && ! -z $(pgrep avabg-instance) ]]; then
              pkill avabg-instance
            else
              avabg-instance $1
            fi
          '')
    
          (pkgs.writeShellScriptBin "avabg-instance" ''
            case $1 in
            c) # Cava
              alacritty --class 'hyprbg' --config-file '/home/${username}/.config/alacritty/cava.toml' -e 'cava'
            ;;
            gl) # GLava
              echo "I don't know how to set the class for GLava"
            ;;
            esac
          '')
    ];
}

SchweGELBin avatar Jun 15 '25 23:06 SchweGELBin

Here it randomly works sometimes, I can't figure the sequence to "enable" it, but most of the time I get nothing in the background instead of the hyprwinwrap content. It also creates random issues (focus, windows visibility, ...) after some time (also quite random).

Did you try the solution @SchweGELBin provided above? Add this to your config: decoration:blur:new_optimizations = false

nnra6864 avatar Jun 16 '25 02:06 nnra6864