X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/8d3868d7ce528cfc075e246c8935bae2724e0868..614b4b63966e4fbb46a52ec521a2f971a788e123:/widget/alsa.lua diff --git a/widget/alsa.lua b/widget/alsa.lua index 9406e0d..29e3a05 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, Luke Bonham + * (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