diff options
-rwxr-xr-x | battery | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -53,10 +53,11 @@ sub update { my $e=$bs->{energy_now}/$bs->{energy_full}; my $txt=''; my $charging = lc($bs->{status}) eq 'charging'; + my $full = lc($bs->{status}) eq 'full'; if ($charging) { $txt = "\x{1f50c} "; } - else { + elsif (!$full) { $txt = "\x{1f50b} "; } if ($bs->{power_now} && !$charging) { |