Fixed a few errors

master
Mark 2022-09-10 21:52:40 -07:00
parent 4518ae74a8
commit fe350957dd
Signed by: Mark
GPG Key ID: AD62BB059C2AAEE4
1 changed files with 6 additions and 6 deletions

View File

@ -112,7 +112,7 @@ widget.update = function(stdout)
timeout = 5,
ignore_suspend = true,
border_color = beautiful.color.widget.danger,
border_color = beautiful.color.battery.danger,
preset = beautiful.notification_templates.bottom_right
})
break
@ -131,11 +131,11 @@ widget.update = function(stdout)
widget.arc.value = batpec
if batpec > 60 then
widget.progressbar.color = beautiful.color.widget.good
widget.progressbar.color = beautiful.color.battery.good
elseif batpec > 40 then
widget.progressbar.color = beautiful.color.widget.low
widget.progressbar.color = beautiful.color.battery.low
elseif batpec <= 40 then
widget.progressbar.color = beautiful.color.widget.danger
widget.progressbar.color = beautiful.color.battery.danger
end
@ -157,9 +157,9 @@ widget.update = function(stdout)
widget.icon.image = widget.image_path
if (not discharging) and (batpec > 90) then
widget.progressbar.border_color = beautiful.color.widget.good
widget.progressbar.border_color = beautiful.color.battery.good
elseif (discharging) and (batpec <= 25) then
widget.progressbar.border_color = beautiful.color.widget.danger
widget.progressbar.border_color = beautiful.color.battery.danger
else
widget.progressbar.border_color = beautiful.color.bar.active
end