Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
executable file 13 lines (11 sloc) 165 Bytes
#!/usr/bin/perl
use strict;
for(`acpi`) {
s/Battery 0: (.).+, ([0-9]+)%.+\n/$1/;
if($1 eq 'D') {
print "◀▪$2";
}
else {
print "▪▶$2";
}
}