From: luke bonham Date: Fri, 20 Sep 2013 01:01:04 +0000 (+0200) Subject: alsabar: added user settings function X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/fdf517503f5d52f0be7760777a7db855c1ede25c alsabar: added user settings function --- diff --git a/widgets/alsabar.lua b/widgets/alsabar.lua index d8f1731..b0bf150 100644 --- a/widgets/alsabar.lua +++ b/widgets/alsabar.lua @@ -92,6 +92,7 @@ end local function worker(args) local args = args or {} local timeout = args.timeout or 4 + local settings = args.settings or function() end local width = args.width or 63 local height = args.heigth or 1 local ticks = args.ticks or true @@ -142,6 +143,11 @@ local function worker(args) alsabar.tooltip:set_text(string.format(" %s:%s ", alsabar.channel, volu)) alsabar.bar:set_color(alsabar.colors.unmute) end + + volume_now = {} + volume_now.level = tonumber(volu) + volume_now.status = mute + settings() end newtimer("alsabar", timeout, alsabar.update) diff --git a/widgets/sysload.lua b/widgets/sysload.lua index 015573c..2abac33 100644 --- a/widgets/sysload.lua +++ b/widgets/sysload.lua @@ -11,7 +11,7 @@ local newtimer = require("lain.helpers").newtimer local wibox = require("wibox") -local io = io +local io = { open = io.open } local string = { format = string.format, match = string.match } diff --git a/wiki b/wiki index f92b3ac..36a0534 160000 --- a/wiki +++ b/wiki @@ -1 +1 @@ -Subproject commit f92b3ac0c9dec3a6c8d046ce3d97add99a3a1e5e +Subproject commit 36a0534651749f23bf9786ba47912b498938c103