mirror of
https://github.com/elenapan/dotfiles.git
synced 2026-01-07 09:17:23 +08:00
Hotfix battery notifications with invisible message (due to upstream bug)
https://github.com/awesomeWM/awesome/issues/3049
This commit is contained in:
parent
6f06cfe6a4
commit
7a693460ea
1 changed files with 6 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue