From 7a693460ea5daa37462a4119bf47e968f1965978 Mon Sep 17 00:00:00 2001 From: elenapan Date: Wed, 8 Apr 2020 01:28:24 +0300 Subject: [PATCH] Hotfix battery notifications with invisible message (due to upstream bug) https://github.com/awesomeWM/awesome/issues/3049 --- config/awesome/notifications/battery.lua | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/config/awesome/notifications/battery.lua b/config/awesome/notifications/battery.lua index 850e299..da11996 100644 --- a/config/awesome/notifications/battery.lua +++ b/config/awesome/notifications/battery.lua @@ -22,18 +22,21 @@ awesome.connect_signal("evil::battery", function(battery) icon = icons.battery if battery <= user.battery_threshold_critical and not battery_critical_already_notified then battery_critical_already_notified = true - message = helpers.colorize_text("CRITICAL", x.color9) + message = "CRITICAL" + -- message = helpers.colorize_text("CRITICAL", x.color9) timeout = 0 elseif battery <= user.battery_threshold_low and not battery_low_already_notified then battery_low_already_notified = true - message = helpers.colorize_text("Low", x.color11) + message = "Low" + -- message = helpers.colorize_text("Low", x.color11) timeout = 6 end else icon = icons.battery_charging if battery > 96 and not battery_full_already_notified then battery_full_already_notified = true - message = helpers.colorize_text("Full", x.color10) + message = "Full" + -- message = helpers.colorize_text("Full", x.color10) timeout = 6 end end