Skip to content

Commit

Permalink
Merge pull request #489 from bzgec/PR/ALSA_fix
Browse files Browse the repository at this point in the history
Converting volume level to number in ALSA widget
  • Loading branch information
lcpz committed Mar 15, 2021
2 parents 3d4bb0b + c28071d commit da418f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion widget/alsa.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit da418f2

Please sign in to comment.