catppuccin/tmux

Battery Charging icon display incorrect

Zoket opened this issue · 4 comments

I installed catppuccin theme in tmux and installed tmux-battery,but battery icon seems display incorrect when in charging。
image
Here is .tmux.conf about catppuccin:

set -g @plugin 'catppuccin/tmux'

set -g @catppuccin_flavour 'frappe' # or latte, macchiato, mocha

set -g @catppuccin_window_left_separator "█"
set -g @catppuccin_window_right_separator "█ "
set -g @catppuccin_window_number_position "right"
set -g @catppuccin_window_middle_separator "  █"

set -g @catppuccin_window_default_fill "number"

set -g @catppuccin_window_current_fill "number"
set -g @catppuccin_window_current_text "#{pane_current_path}"

set -g @catppuccin_status_modules_right "application session battery"

set -g @plugin 'tmux-plugins/tmux-battery'

nerd-font is font-meslo-lg-nerd-font installed by brew.
I have no idea which icon i'm missing.

vdbe commented

Do you have all dependencies,
looks like the attached icon not the charging icon.

Does it work with just tmux-battery (without catppuccin)?

Thanks for reply!I had a mistake,this status is not represent charging but named 'attached',and catppuccin doesn't overwrite attached icon so tmux show original icon in tmux-battery.
Now I overwrite tmux-battery icon by this:
set -g @batt_icon_status_attached "󱈑"
Can catppuccin support attached icon?

vdbe commented

Does that change fix the problem?

Does that change fix the problem?

Yes,this change overwrite default icon with nerd-font like this:
image