Minor cleanup

This commit is contained in:
2022-04-24 12:27:54 -07:00
parent 9f72bdb16b
commit 161576e2cd
10 changed files with 10 additions and 11 deletions

View File

@ -1,4 +1,5 @@
local P = {}
P.__index = P
function P:set_value(value)
-- Set widget value. (0 - 100)
@ -68,7 +69,6 @@ function P:new()
state = "error"
}
setmetatable(widget, self)
self.__index = self
widget.icon = wibox.widget {
image = beautiful.icons.battery.missing,

View File

@ -6,7 +6,7 @@ local widget_types = {
local P = {
name = "battery"
}
P.__index = P
---
-- Internal methods

View File

@ -1,4 +1,5 @@
local P = {}
P.__index = P
function P:set_value(value)
-- Set widget value. (0 - 100)
@ -50,7 +51,6 @@ function P:new()
state = "error"
}
setmetatable(widget, self)
self.__index = self
widget.progressbar = wibox.widget {
max_value = 100,