tmux-battery icon indicating copy to clipboard operation
tmux-battery copied to clipboard

battery_icon seems to resolve to zero?

Open tnguyen14 opened this issue 8 years ago • 4 comments
trafficstars

In my status, I have the following:

'#{?battery_icon,, | #{battery_icon}#{battery_percentage}}

which displays correctly on my macbook, but shows | on a remote machine with no battery. So this means that battery_icon either does not exist or is zero for both environments (note the second alternative is chosen, as per http://man.openbsd.org/OpenBSD-current/man1/tmux.1#FORMATS). Does this make sense?

tnguyen14 avatar Apr 07 '17 13:04 tnguyen14

Does the icon which is configured exists on the remote machine?

If you configure the icon to be just a character, does that show?

martinbeentjes avatar Apr 07 '17 13:04 martinbeentjes

I tried that, and they do not show.

tnguyen14 avatar Apr 07 '17 13:04 tnguyen14

@martinbeentjes do you have any update on this?

tnguyen14 avatar Oct 06 '17 18:10 tnguyen14

I have been busy finishing up my thesis myself, sorry for the late reaction.

I would think that the battery_status method does not return a valid value for your case. Could you verify that?

martinbeentjes avatar Oct 10 '17 07:10 martinbeentjes