Compare commits

..

2 Commits

Author SHA1 Message Date
Mark fbc941f5d2
Merge branch 'master' of ssh://git.betalupi.com:33/Mark/awesomewm 2022-09-10 21:53:21 -07:00
Mark fe350957dd
Fixed a few errors 2022-09-10 21:52:40 -07:00
1 changed files with 6 additions and 6 deletions

View File

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