Merge pull request #489 from bzgec/PR/ALSA_fix

Converting volume level to number in ALSA widget
This commit is contained in:
Luca CPZ 2021-03-15 17:44:49 +00:00 committed by GitHub
commit da418f2ec6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ local function factory(args)
helpers.async(format_cmd, function(mixer)
local l,s = string.match(mixer, "([%d]+)%%.*%[([%l]*)")
if alsa.last.level ~= l or alsa.last.status ~= s then
volume_now = { level = l, status = s }
volume_now = { level = tonumber(l), status = s }
widget = alsa.widget
settings()
alsa.last = volume_now