Re: [dev] My dwmstatusbar.c

From: Krol, Willem van de <008054_AT_jfc.nl>
Date: Mon, 31 Dec 2012 09:26:59 +0100

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 - 09:26:59 CET

This archive was generated by hypermail 2.3.0 : Mon Dec 31 2012 - 09:36:04 CET