diff --git a/bar/src/acpi.php b/bar/src/acpi.php index 27fa6a2..0d55cd6 100755 --- a/bar/src/acpi.php +++ b/bar/src/acpi.php @@ -26,7 +26,7 @@ if (!preg_match('`Discharging`', $acpi)) { $charging .= '↑'; $block = block( - 'volume', + 'acpi', [ 'full_text' => $charging, 'color' => $color, @@ -34,7 +34,7 @@ if (!preg_match('`Discharging`', $acpi)) { ); } else { $block = block( - 'volume', + 'acpi', [ 'full_text' => '??? ↑', 'color' => color('info'), @@ -54,10 +54,10 @@ if (!preg_match('`Discharging`', $acpi)) { $charging = $values[1].'↓'; $times = str_replace(':', 'h', $values[2]); - $text = implode(' ', array($charging, $times)); + $text = implode(' ', [$charging, $times]); $block = block( - 'volume', + 'acpi', [ 'full_text' => $text, 'color' => $color, diff --git a/bar/src/bandwidth.php b/bar/src/bandwidth.php index 01190db..779d546 100755 --- a/bar/src/bandwidth.php +++ b/bar/src/bandwidth.php @@ -31,5 +31,6 @@ echo block( [ 'full_text' => $fullText, 'color' => '#ffffff', + 'urgent' => 1, ] ); diff --git a/bar/src/base/block.php b/bar/src/base/block.php index 1216881..7aaa574 100644 --- a/bar/src/base/block.php +++ b/bar/src/base/block.php @@ -1,5 +1,12 @@