hastinbe / i3blocks-battery-plus

An enhanced battery status indicator for i3blocks

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Battery Icon not displaying the correct symbol

connorjlbrown opened this issue · comments

I've been playing around with this for a little while, and I got it to work for the most part. The only thing is, the FontAwesome battery symbols are instead replaced by other random symbols.
pic-selected-200519-1223-39
Here's what my i3blocks.conf looks like:

[battery-plus]
command=~/.config/i3blocks/scripts/i3blocks-battery-plus/battery-plus
markup=pango
instance=BAT0
interval=30
_FONT=FontAwesome
#_PERCENT=%
#_HIDE_IF_CHARGED=false
_USE_BATT_GRADIENT=false
#_SYMBOLS_ONLY=false
#_HIDE_PERCENTAGE=false
#_HIDE_TIME_REMAINING=true
#_HIDE_TIME_TO_FULL=true
#_SHOW_CHARGE_DIRECTION=true
#_CAPACITY_ALERT=75
_CRITICAL_ACTION=notify
_LOW_ACTION=notify
_NOTIFY_PROGRAM=notify-send
#_NOTIFY_EXPIRES=1500
#_NOTIFY_THROTTLE=120
#_COLOR_FULLY_CHARGED=green
#_COLOR_CHARGING=yellow
#_COLOR_DISCHARGING=yellow
#_COLOR_PENDING=blue
#_COLOR_ERROR=red
#_COLOR_BATTERY=white
#_COLOR_ALERT=orange
#_COLOR_DIRECTIONAL_UP=green
#_COLOR_DIRECTIONAL_DOWN=red
#_COLOR_GRADIENT_START=#00FF00
#_COLOR_GRADIENT_END=#FF0000
#_SYMBOL_FULLY_CHARGED=
#_SYMBOL_CHARGING=
_SYMBOL_DISCHARGING=
#_SYMBOL_UNKNOWN=
#_SYMBOL_PENDING=
#_SYMBOL_ERROR=
#_SYMBOL_ALERT=
_SYMBOL_BATT_100=
_SYMBOL_BATT_75=
_SYMBOL_BATT_50=
_SYMBOL_BATT_25=
_SYMBOL_BATT_0=
#_SYMBOL_DIRECTION_UP=↑
#_SYMBOL_DIRECTION_DOWN=↓

I double checked and I appear to be using the correct symbols in here. Any ideas?

When you run ~/.config/i3blocks/scripts/i3blocks-battery-plus/battery-plus from the shell what does it output? Which version of i3blocks and FontAwesome are you using?

imageThis is what's coming out of the shell
I'm using i3blocks 1.5-3 and python-fontawesome 5.10.1post1-1

I will need the output when the problem occurs. It looks like _SYMBOL_BATT_100 is not the correct symbol for the font being used. Which font is specified in your i3wm config?

it's a monospace 10 point font.
more specifically it says "font pango:mono 10"

The default battery symbols are for fonts that have the Font Awesome glyphs patched in. You'll need to either find and specify the glyphs yourself for your font, or use a font that includes Font Awesome glyphs such as Font Awesome or Nerd Fonts.

Example: font pango:FontAwesome 10