mirror of
https://github.com/bvanroll/oldest-dotfiles.git
synced 2025-08-29 12:02:40 +00:00
i3 and blocks changes for the win 95 look
This commit is contained in:
@@ -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);
|
||||
|
Reference in New Issue
Block a user