From: copycat-killer Date: Thu, 29 Sep 2016 08:48:54 +0000 (+0200) Subject: Merge branch 'master' of github.com:copycat-killer/lain into HEAD X-Git-Url: https://git.madduck.net/etc/awesome.git/commitdiff_plain/9e78c8d1219c7406d0cd8a3394fec4c4f27134e0?hp=ad4066caed02d9da2f3ec74a4648b96d3a7c3fa2 Merge branch 'master' of github.com:copycat-killer/lain into HEAD --- 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