Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

executable file 13 lines (11 sloc) 0.165 kb
#!/usr/bin/perl
use strict;
for(`acpi`) {
s/Battery 0: (.).+, ([0-9]+)%.+\n/$1/;
if($1 eq 'D') {
print "◀▪$2";
}
else {
print "▪▶$2";
}
}
Jump to Line
Something went wrong with that request. Please try again.