X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8d3868d7ce528cfc075e246c8935bae2724e0868..0a0a077b86208565075f7db79160feda8b02d745:/widget/alsa.lua diff --git a/widget/alsa.lua b/widget/alsa.lua index 9406e0d..3b6c6d6 100644 --- a/widget/alsa.lua +++ b/widget/alsa.lua @@ -1,23 +1,20 @@ - --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2010, Adrian C. - + + Licensed under GNU General Public License v2 + * (c) 2013, Luca CPZ + * (c) 2010, Adrian C. + --]] -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 = string -- 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 +50,4 @@ local function worker(args) return alsa end -return setmetatable({}, { __call = function(_, ...) return worker(...) end }) +return factory