i3 and blocks changes for the win 95 look

This commit is contained in:
2018-11-19 16:19:01 +01:00
parent 97a2d2e750
commit 833702fa4b
6 changed files with 235 additions and 108 deletions

View File

@@ -38,9 +38,9 @@ $percent = $2;
$full_text = "$percent%";
if ($status eq 'Discharging') {
$full_text .= ' DIS';
$full_text .= ' ';
} elsif ($status eq 'Charging') {
$full_text .= ' CHR';
$full_text .= ' ';
}
$short_text = $full_text;
@@ -56,19 +56,19 @@ print "$short_text\n";
# consider color and urgent flag only on discharge
if ($status eq 'Discharging') {
if ($percent < 20) {
print "#FF0000\n";
} elsif ($percent < 40) {
print "#FFAE00\n";
} elsif ($percent < 60) {
print "#FFF600\n";
} elsif ($percent < 85) {
print "#A8FF00\n";
}
if ($percent < 5) {
exit(33);
}
# if ($percent < 20) {
# print "#FF0000\n";
# } elsif ($percent < 40) {
# print "#FFAE00\n";
# } elsif ($percent < 60) {
# print "#FFF600\n";
# } elsif ($percent < 85) {
# print "#A8FF00\n";
# }
#
# if ($percent < 5) {
# exit(33);
# }
}
exit(0);