Hotfix battery notifications with invisible message (due to upstream bug)

https://github.com/awesomeWM/awesome/issues/3049
This commit is contained in:
elenapan 2020-04-08 01:28:24 +03:00
parent 6f06cfe6a4
commit 7a693460ea

View file

@ -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