X-Git-Url: https://git.madduck.net/etc/awesome.git/blobdiff_plain/19b510cfc4ab3843f974aa494c58a477bb8ce508..ebefc1e21d71c4b53e27e142cd199f3ec600da9c:/widgets/alsabar.lua?ds=inline 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