X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/19b510cfc4ab3843f974aa494c58a477bb8ce508..bef7f37436e6d26b28c6fb528aeddf06eeba26a7:/widgets/alsabar.lua diff --git a/widgets/alsabar.lua b/widgets/alsabar.lua index b7c66b7..eec3428 100644 --- a/widgets/alsabar.lua +++ b/widgets/alsabar.lua @@ -135,7 +135,7 @@ local function worker(args) if (volu and tonumber(volu) ~= alsabar._current_level) or (mute and string.match(mute, "on") ~= alsabar._muted) then - alsabar._current_level = tonumber(volu) + alsabar._current_level = tonumber(volu) or alsabar._current_level alsabar.bar:set_value(alsabar._current_level / 100) if not mute and tonumber(volu) == 0 or mute == "off" then