If you use pulseaudio as your sound system, I would recommend to switch to vicious.contrib.pulse. I also had amixer related problems. (the util the widget depends on)
2011/4/12 chris M. sprite <[email protected]> > I find that sometimes the volume widget of awesome will display "mute" , > sometimes not at system startup . > It is weird , I do not know which one is controlling volume ( alsa , oss ? > ) > belowing is the code of volume widget . > > -- Volume widget > volwidget = widget({ type = "textbox" }) > vicious.register(volwidget, vicious.widgets.volume, > function (widget, args) > if args[1] == 0 or args[2] == "♩" then > return "" .. colwhi .. "Vol " .. coldef .. > colbred .. "mute" .. coldef .. "" > else > return "" .. colwhi .. "Vol " .. coldef .. > colbblu .. args[1] .. "%" .. coldef .. "" > end > end, 2, "Master" ) > volwidget:buttons( > awful.util.table.join( > awful.button({ }, 1, function () > awful.util.spawn("amixer -q sset Master toggle") end), > awful.button({ }, 3, function () awful.util.spawn( > terminal .. " -e alsamixer") end), > awful.button({ }, 4, function () > awful.util.spawn("amixer -q sset Master 2dB+") end), > awful.button({ }, 5, function () > awful.util.spawn("amixer -q sset Master 2dB-") end) > ) > ) > > -- > I try to detoxify my memory. > Forget can not be treated as betray. > It's not certainly a love even though you remember to the end of your > life. > > -- > To unsubscribe, send mail to [email protected]. >
