Skip to content

Commit

Permalink
Converting volume level to number in ALSA widget
Browse files Browse the repository at this point in the history
  • Loading branch information
bzgec authored and lcpz committed Mar 28, 2021
1 parent 3d4bb0b commit 47a2da3
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 47a2da3

Please sign in to comment.