From eb7c1332322c8436cfb2ca8543f106affbd4c39f Mon Sep 17 00:00:00 2001 From: Simon Vieille Date: Wed, 3 Jan 2018 13:53:49 +0100 Subject: [PATCH] Fix and notifications --- bar/src/acpi.php | 8 ++++---- bar/src/bandwidth.php | 1 + bar/src/base/block.php | 17 ++++++++++++++++- bar/src/ip.php | 3 ++- bar/src/ip_wan.php | 5 +++++ bar/src/rss.php | 2 +- bar/src/time.php | 4 ++++ 7 files changed, 33 insertions(+), 7 deletions(-) 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 @@