Re: [dev] My dwmstatusbar.c

From: Mariano Bono <armaoin_AT_gmail.com>
Date: Mon, 31 Dec 2012 12:55:14 +0100

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 <008054_AT_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 <armaoin_AT_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.
>
>
Received on Mon Dec 31 2012 - 12:55:14 CET

This archive was generated by hypermail 2.3.0 : Mon Dec 31 2012 - 13:00:06 CET