Fixed a few errors
This commit is contained in:
		| @ -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 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user