X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8d3868d7ce528cfc075e246c8935bae2724e0868..81c816eb8d566dd8e75ce0d9040650f0c905145a:/widget/alsa.lua?ds=sidebyside diff --git a/widget/alsa.lua b/widget/alsa.lua index 9406e0d..36ccc71 100644 --- a/widget/alsa.lua +++ b/widget/alsa.lua @@ -7,17 +7,16 @@ --]] -local helpers = require("lain.helpers") -local shell = require("awful.util").shell -local wibox = require("wibox") -local string = { match = string.match, - format = string.format } -local setmetatable = setmetatable +local helpers = require("lain.helpers") +local shell = require("awful.util").shell +local wibox = require("wibox") +local string = { match = string.match, + format = string.format } -- ALSA volume -- lain.widget.alsa -local function worker(args) +local function factory(args) local alsa = { widget = wibox.widget.textbox() } local args = args or {} local timeout = args.timeout or 5 @@ -53,4 +52,4 @@ local function worker(args) return alsa end -return setmetatable({}, { __call = function(_, ...) return worker(...) end }) +return factory