Alexays / Waybar

Highly customizable Wayland bar for Sway and Wlroots based compositors. :v: :tada:
MIT License
5.91k stars 666 forks source link

hyprland/window module is too tall when window has a title with an icon #3070

Open ravidonorbox opened 3 months ago

ravidonorbox commented 3 months ago

For instance, if I open this url (https://github.com/catppuccin/waybar) in any browser, this is what I see

image

Git head is 9cf405e57c27d13acab4a9a7726c56511aca98bb, but it also happened on version 0.10.0

vague2k commented 3 months ago

what does your hyprland/window module look like?.

In case it helps, you can compare it with mine (which works fine, according to how you described it) and see if there's anything inherently different. Albeit, mine is very minimal

    "hyprland/window": {
        "rewrite": {
            "(.*) - Firefox": "$1",
            "(.*) - kitty": "[$1]"
        },
        "separate-outputs": true
    },
ravidonorbox commented 3 months ago

Mine is even more minimal: "hyprland/window": { "separate-outputs": true },

I tried changing font-family to a font with no icons on style.css, but the huge icon was still there. Even removing style.css entirely made no difference

I can also reproduce it if I add something like

"rewrite": { "(.*) - Vivaldi": "🌎 $1" }

to the hyprland/window section

vague2k commented 3 months ago

Have you tried using a different browser instead of Vivaldi, by any chance? It's a bit tricky to pinpoint the source of the issue since it seems like it's not inherently a problem with waybar or the styling.

ravidonorbox commented 3 months ago

It happens with any program that has an icon in its title. For example, if I change the config to this

    "hyprland/window": {
        "separate-outputs": true,
        "rewrite": {
           "(.*)": "🌎 $1"
        }
    },
ravidonorbox commented 3 months ago

I found a workaround. If I remove the noto-emoji font from my system, I don't get the huge icons anymore. It seems that waybar was using that font as the first option, even though the font on style.css does have those icons and I didn't set noto-emoji as a fallback on fontconfig. Maybe it's a cairo bug? Should I close this?