Closed dhnam closed 5 months ago
Alright, I edited my ~/.p10k.zsh
a little bit more.
Looks like I need to change 'battery' section as well.
I edited this, so it'll be good, I hoped.
Well, it didn't go well.
I slept; I woke up; and I see everything is working perfectly fine, somehow....?
I don't understand it, but it works now.
I cannot reproduce this. I'll close it.
Hello @dhnam, I used to have your issue with the battery icons. I tried to change the battery stages character as you suggested and it worked, thanks!
# Battery pictograms going from low to high level of charge.
# typeset -g POWERLEVEL9K_BATTERY_STAGES='\uf58d\uf579\uf57a\uf57b\uf57c\uf57d\uf57e\uf57f\uf580\uf581\uf578'
typeset -g POWERLEVEL9K_BATTERY_STAGES='\UF008E\UF007A\UF007B\UF007C\UF007D\UF007E\UF007F\UF0080\UF0081\UF0082\UF0079'
I found also this conversion map that I leave here for reference https://gist.github.com/mischw/78e8e42c2ebb1069560a2fc4573b1425#file-convert_unicode_nerdfont3-py-L116
So I'm really loving p10k, and had been used it quite a while. (Thank you for making this wonderful theme)
Anyway, I custom-patched a font (which is happened to be nerd font v3.0 as I used docker), and applied the font.
There was a little bit of problem: battery icon is not shown properly.
I was quite embarrassed, and edited
~/.p10k.zsh
. (btw I customized my p10k so I didn't want to use configure)So I set my typeset to
nerdfont-v3
, and loaded p10k again - even halted entire system (I used wsl btw, so terminated it) and restarted, but still battery icon is not shown properly.This is proof that font itself has battery icon - well, NF 3.0 battery icon, not icon removed.