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)
@ -34,7 +35,6 @@ end
function P:new()
local widget = {}
setmetatable(widget, self)
self.__index = self
widget.icon = wibox.widget {
resize = true,

View File

@ -1,4 +1,5 @@
local P = {}
P.__index = P
function P:set_value(value)
-- Set widget value. (0 - 100)
@ -24,7 +25,6 @@ end
function P:new()
local widget = {}
setmetatable(widget, self)
self.__index = self
widget.bar = wibox.widget {
max_value = 100,

View File

@ -6,6 +6,7 @@ local widget_types = {
local P = {
name = "volume"
}
P.__index = P
---
-- Internal methods
@ -198,7 +199,6 @@ function P:new(args)
)
setmetatable(v, self)
self.__index = self
-- This timer keeps mute and volume status up-to-date.
v.timer = gears.timer {