diff options
author | dakkar <dakkar@thenautilus.net> | 2013-08-17 10:01:34 +0100 |
---|---|---|
committer | dakkar <dakkar@thenautilus.net> | 2013-08-17 10:01:34 +0100 |
commit | 011298f5490a9329e9ef71a398e1d2fce024cec6 (patch) | |
tree | dd8622d393ec34d5978aa81299a27c2324a56973 /battery | |
parent | show time only on battery (diff) | |
download | battery-011298f5490a9329e9ef71a398e1d2fce024cec6.tar.gz battery-011298f5490a9329e9ef71a398e1d2fce024cec6.tar.bz2 battery-011298f5490a9329e9ef71a398e1d2fce024cec6.zip |
no icon when full
Diffstat (limited to 'battery')
-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) { |