i3 / i3status

Generates status bar to use with i3bar, dzen2 or xmobar
BSD 3-Clause "New" or "Revised" License
598 stars 251 forks source link

Battery status strings are limited to 9 characters #516

Closed christophgysin closed 1 month ago

christophgysin commented 10 months ago

I was trying to use the battery status settings suggested in the man page:

battery 0 {
    format = "%status %percentage %remaining %emptytime"
    status_bat = "🔋 BAT"
    ...
}

Since my font lacks the battery unicode symbol, I used pango markup to change the font:

general {
    ...
    markup = "pango"
}

battery 0 {
    ...
    status_bat = '<span font="Noto Emoji">🔋</span> BAT'
    ...
}

But it seems the status was cut off:

{
  "name": "battery",
  "instance": "/sys/class/power_supply/BAT0/uevent",
  "markup": "pango",
  "full_text": "<span fon: 84.14% 04:55 14:42"
}

It turns out that battery status strings (among others) are limited to 9 characters.

Please consider increasing this limit.

liar666 commented 1 month ago

Almost 1 year later, the problem is still here. It's very annoying, its breaks the whole block when theming with <span></span> :(