Minor cleanup
This commit is contained in:
@ -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,
|
||||
|
@ -6,7 +6,7 @@ local widget_types = {
|
||||
local P = {
|
||||
name = "battery"
|
||||
}
|
||||
|
||||
P.__index = P
|
||||
|
||||
---
|
||||
-- Internal methods
|
||||
|
@ -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,
|
||||
|
Reference in New Issue
Block a user