Thanks,
wait for alsa events is much better than update every second.
Have you found good alsa documentation? In my opinion official alsa
api docs sucks.

2012/12/31 Krol, Willem van de <008...@jfc.nl>:
> Here is mine: it waits at most 10 seconds for ALSA events, so the status bar
> is updated whenever you change the volume. I have the following in my dwm
> config.h:
>
> static Button buttons[] = {
>     ...
>     { ClkStatusText,        0,              Button1,        spawn,
> {.v = volmutecmd } },
>     { ClkStatusText,        0,              Button4,        spawn,
> {.v = volupcmd } },
>     { ClkStatusText,        0,              Button5,        spawn,
> {.v = voldowncmd } },
> };
>
> Now I can scroll on the status bar to raise/lower volume.
>
>
> On Sun, Dec 30, 2012 at 5:01 PM, Mariano Bono <arma...@gmail.com> wrote:
>>
>> Hi all,
>> I'm a new dwm user and i've written a simple dwmstatusbar app that
>> show volume and time.
>> The code relative to volume use alsalib and maybe someone can find it
>> useful.
>> Critics and suggestion are welcome.
>
>

Reply via email to