From: Mathieu Nivoliez Date: Sun, 29 May 2016 17:37:38 +0000 (+0200) Subject: Fix muted problem. To know if the sound is mute we have to check if mute == "yes... X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/762ebb043e62600b997b3f989f78933650027475?ds=sidebyside;hp=--cc Fix muted problem. To know if the sound is mute we have to check if mute == "yes" instead of mute == "no" --- 762ebb043e62600b997b3f989f78933650027475 diff --git a/widgets/pulsebar.lua b/widgets/pulsebar.lua index fc697fa..6955b04 100644 --- a/widgets/pulsebar.lua +++ b/widgets/pulsebar.lua @@ -1,10 +1,10 @@ --[[ - - Licensed under GNU General Public License v2 - * (c) 2013, Luke Bonham - * (c) 2013, Rman - + + Licensed under GNU General Public License v2 + * (c) 2013, Luke Bonham + * (c) 2013, Rman + --]] local newtimer = require("lain.helpers").newtimer @@ -134,7 +134,7 @@ local function worker(args) then pulsebar._current_level = volu pulsebar.bar:set_value(pulsebar._current_level / 100) - if not mute and volu == 0 or mute == "no" + if not mute and volu == 0 or mute == "yes" then pulsebar._muted = true pulsebar.tooltip:set_text (" [Muted] ")