mirror of https://github.com/lcpz/lain.git
Merge pull request #489 from bzgec/PR/ALSA_fix
Converting volume level to number in ALSA widget
This commit is contained in:
commit
da418f2ec6
|
@ -37,7 +37,7 @@ local function factory(args)
|
||||||
helpers.async(format_cmd, function(mixer)
|
helpers.async(format_cmd, function(mixer)
|
||||||
local l,s = string.match(mixer, "([%d]+)%%.*%[([%l]*)")
|
local l,s = string.match(mixer, "([%d]+)%%.*%[([%l]*)")
|
||||||
if alsa.last.level ~= l or alsa.last.status ~= s then
|
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
|
widget = alsa.widget
|
||||||
settings()
|
settings()
|
||||||
alsa.last = volume_now
|
alsa.last = volume_now
|
||||||
|
|
Loading…
Reference in New Issue