i3status-rust icon indicating copy to clipboard operation
i3status-rust copied to clipboard

Space issue of bluetooth block

Open c02y opened this issue 2 years ago • 2 comments

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

image

Put two spaces after $icon in the format of bluetooth block:

[[block]]
block = "bluetooth"
format = "$icon  "
disconnected_format = "$icon  "
mac = "xxx"

image

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.

c02y avatar Nov 22 '22 09:11 c02y

Which icon set and font do you use?

MaxVerevkin avatar Nov 22 '22 13:11 MaxVerevkin

  • awesome6
  • font 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

image

c02y avatar Nov 22 '22 17:11 c02y

Closing because it is a font/bar issue and we can't do much about it.

MaxVerevkin avatar Jan 11 '23 18:01 MaxVerevkin

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?

c02y avatar Jan 12 '23 22:01 c02y

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.

MaxVerevkin avatar Jan 12 '23 22:01 MaxVerevkin

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)

image


Anyway, icons_format = "<span font_family='Font Awesome 6 Pro'>{icon}</span>" fixes all the space issue here.

Thank you.

c02y avatar Jan 13 '23 00:01 c02y

Fonts are weird :weary:

MaxVerevkin avatar Jan 13 '23 13:01 MaxVerevkin