i3status-rust
i3status-rust copied to clipboard
Space issue of bluetooth block
Put only one space after $icon the format for bluetooth block:
[[block]]
block = "sound"
format = "$icon $volume "
max_vol = 150
show_volume_when_muted = true
headphones_indicator = true
[[block]]
block = "bluetooth"
format = "$icon "
disconnected_format = "$icon "
mac = "xxx"
[[block]]
block = "time"
format = "$icon %m/%d %a %H:%M"
interval = 10

Put two spaces after $icon in the format of bluetooth block:
[[block]]
block = "bluetooth"
format = "$icon "
disconnected_format = "$icon "
mac = "xxx"

It seems the one space after the $icon in format of bluetooth block is only half of the one space in the format of other blocks.
Which icon set and font do you use?
awesome6font pango:Noto Sans Mono, Font Awesome 6 Pro 12.4
Battery block has this issue as well:
[[block]]
block = "bluetooth"
format = "$icon "
disconnected_format = "$icon "
mac = "xxx"
[[block]]
block = "battery"
device = "gip*"
format = "$icon $percentage "
missing_format = ""
driver = "sysfs"
critical = 5
[[block]]
block = "time"
format = "$icon %m/%d %a %H:%M"
interval = 10

Closing because it is a font/bar issue and we can't do much about it.
I'm sorry, I tried the old config which is awesome5 and Font Awesome 5 Pro 12.4, but this issue is not gone either.
And awesome6, Font Awesome 6 12.4 is the same either.
Since old version of i3status-rust is working fine, could you please be more specific about the font/bar issue?
Or if the space in your i3status-rust is working fine, could you please share your font config of i3/i3status-rust?
Since old version of i3status-rust is working fine
Oh, you didn't mention that. TBH I don't understand how this can be the case because icons weren't changed since v0.20. Are you absolutely sure?
Or if the space in your i3status-rust is working fine, could you please share your font config of i3/i3status-rust?
I personally use icons = "material-nf" with JetBrainsMono Nerd Font 10 and I've never had any issues with it. I did have (spacing and size) issues with awesome and I used to use pango markup to fix it (there is an example in the README how to use icons_format for this purpose) but eventually just switched.
Don't know why, if I use icons = "material-nf" in i3status-rust config and font pango:JetBrainsMono Nerd Font 12 in i3-config bar, the icons in the i3status-rust bar is messed up. (JetBrainsMono Nerd Font is from nerd-fonts-jetbrains-mono archlinux package)

Anyway, icons_format = "<span font_family='Font Awesome 6 Pro'>{icon}</span>" fixes all the space issue here.
Thank you.
Fonts are weird :weary: