X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/cc8de6a059757bc5ea3f8f7013db55ab3af924a5..8f948b52ebd1ce35a20bf43708444a2bc01ad673:/widget/pulsebar.lua diff --git a/widget/pulsebar.lua b/widget/pulsebar.lua index e80a251..0ab6312 100644 --- a/widget/pulsebar.lua +++ b/widget/pulsebar.lua @@ -7,33 +7,32 @@ --]] -local helpers = require("lain.helpers") -local awful = require("awful") -local naughty = require("naughty") -local wibox = require("wibox") -local math = { modf = math.modf } -local string = { format = string.format, - gmatch = string.gmatch, - match = string.match, - rep = string.rep } -local type = type -local tonumber = tonumber -local setmetatable = setmetatable +local helpers = require("lain.helpers") +local awful = require("awful") +local naughty = require("naughty") +local wibox = require("wibox") +local math = { modf = math.modf } +local string = { format = string.format, + match = string.match, + gmatch = string.gmatch, + rep = string.rep } +local type, tonumber = type, tonumber -- Pulseaudio volume bar -- lain.widget.pulsebar -local pulsebar = { - colors = { - background = "#000000", - mute = "#EB8F8F", - unmute = "#A4CE8A" - }, - - _current_level = 0, - _muted = false -} local function factory(args) + local pulsebar = { + colors = { + background = "#000000", + mute = "#EB8F8F", + unmute = "#A4CE8A" + }, + + _current_level = 0, + _muted = false + } + local args = args or {} local timeout = args.timeout or 5 local settings = args.settings or function() end