X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8d3868d7ce528cfc075e246c8935bae2724e0868..f76d33e8cd5bc84f44758e8047294227deb3f29d:/widget/alsa.lua?ds=inline diff --git a/widget/alsa.lua b/widget/alsa.lua index 9406e0d..2d4891d 100644 --- a/widget/alsa.lua +++ b/widget/alsa.lua @@ -1,23 +1,21 @@ - --[[ - - 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 = { 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 +51,4 @@ local function worker(args) return alsa end -return setmetatable({}, { __call = function(_, ...) return worker(...) end }) +return factory