Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

waybar height changes to accomodate unicode emojis in window titles #2026

Open
llyyr opened this issue Feb 25, 2023 · 7 comments
Open

waybar height changes to accomodate unicode emojis in window titles #2026

llyyr opened this issue Feb 25, 2023 · 7 comments

Comments

@llyyr
Copy link
Contributor

llyyr commented Feb 25, 2023

The height of the window title text sometimes causes waybar's height to increase (from 17px to 24px in this case). This messes with positioning with sway and such. There should be an option for the height to be fixed, even if it means some text might overflow.

Example emoji that does it: 🎙

Example style.css

* {
  font-family: "Noto Sans Mono"; 
  font-size: 9pt;
  padding-top: 0;
  padding-bottom: 0;
}

Fwiw I could only find two fonts that this is an issue with, Sarasa Gothic, Noto Sans Mono and Iosevka. But waybar's height should remain the same regardless of what the modules do if that's what the user wants.

@Kacper-Kondracki
Copy link

@Alexays Please address this issue. I can confirm that it messes with sway positioning. It causes all windows to resize. And the worst of all, it occasionally causes my chromium based browser (brave) to freeze when a tab has unicode character that cause the bar to resize to accommodate it. It is just problematic.

@Kacper-Kondracki
Copy link

Found a workaround. Setting a negative margins to a module margin-top: -50px; margin-bottom: -50px hacks it, so larger unicode characters no longer change height of the bar.

@josch
Copy link

josch commented Apr 10, 2024

Your microphone emoji doesn't trigger this bug for me. But this one does:

zenity --title="༺" --entry

@paolomainardi
Copy link

@Kacper-Kondracki, it works, but the tray icons disappear for some reason.

@paolomainardi
Copy link

Did anyone try some other solutions?

@mrdgo
Copy link

mrdgo commented Jun 14, 2024

I also observe this behavior. For example when listening to JARYMANE mixes on YouTube. They use a weird symbol in the video titles. For now, thanks @Kacper-Kondracki . But I would happily welcome a more mature solution.

@w23
Copy link

w23 commented Dec 2, 2024

The workaround does indeed help (applied it to #window section of style.css, and did killall -SIGUSR2 waybar), thanks!

It feels like a hack, though. This rather annoying issue should be addressed at systems level -- there should be no physical way for styling/contents to change bar geometry.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants