Alexays / Waybar

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

Tab in tooltip is not aligned properly in bluetooth module #2823

Closed fritzrehde closed 8 months ago

fritzrehde commented 9 months ago

I noticed that for the built-in bluetooth module, the tooltip does not properly format the table, even though I used tab characters. See screenshot: 20240110_10h56m34s_grim Here, I would expect the text to be aligned like:

2 connected
Fritz's Bose QC35   20%
M720 Triathlon      100%

or similar. Basically, I am asking whether elastic tabstops are supported for this text. If not, it might be a cool feature to add to enhance the UI.

mahaveergurjar commented 8 months ago

You need to remove /t to fix this issue

"tooltip-format-enumerate-connected-battery": "{device_alias} /t {device_battery_percentage}%"
    },

You can use these for -> , // for differentiate

"tooltip-format-enumerate-connected-battery": "{device_alias} -> {device_battery_percentage}%"
    },

240123_20h34m48s_screenshot 240123_20h35m50s_screenshot