Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Battery status strings are limited to 9 characters #516

Open
christophgysin opened this issue Oct 20, 2023 · 0 comments 路 May be fixed by #517
Open

Battery status strings are limited to 9 characters #516

christophgysin opened this issue Oct 20, 2023 · 0 comments 路 May be fixed by #517

Comments

@christophgysin
Copy link

christophgysin commented Oct 20, 2023

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.

christophgysin added a commit to christophgysin/i3status that referenced this issue Oct 20, 2023
Allows e.g. putting pango markup inside status strings.

Fixes i3#516
@christophgysin christophgysin linked a pull request Oct 20, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant