Re: [dev] My dwmstatusbar.c

2013-01-08 Thread Rob
Thanks for the good suggestions - I'll have a pop at the daemon and see how it goes. Cheers, Rob

Re: [dev] My dwmstatusbar.c

2013-01-07 Thread Rob
On Sun, Dec 30, 2012 at 05:01:10PM +0100, Mariano Bono 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. Here's one for you

Re: [dev] My dwmstatusbar.c

2013-01-07 Thread Galos, David
my keyboard has a scroll wheel, and I currently have it hooked via dwm to run an external shell script to increase/decrease the volume. anyone got any smart ideas about this? Write a simple volume control daemon, that makes a named pipe. Then, in dwm call spawn on shell commands that echo UP,

Re: [dev] My dwmstatusbar.c

2013-01-07 Thread Bryan Bennett
Maybe something like tudor-volumed? I know its not exactly suckless, but it might get you started or give you a few ideas. https://github.com/darvid/tudor-volumed

Re: [dev] My dwmstatusbar.c

2013-01-07 Thread Michał Kazior
If you want to listen for alsa mixer changes you can try scripting around `amixer events`. It seems to be undocumented but works.

Re: [dev] My dwmstatusbar.c

2012-12-31 Thread Krol, Willem van de
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 } }, {

Re: [dev] My dwmstatusbar.c

2012-12-31 Thread Adrian Sadłocha
On 2012-12-31 09:26, Krol, Willem van de wrote: Now I can scroll on the status bar to raise/lower volume. Awesome, thanks!

Re: [dev] My dwmstatusbar.c

2012-12-31 Thread Mariano Bono
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

Re: [dev] My dwmstatusbar.c

2012-12-31 Thread Krol, Willem van de
Yes, the documentation sucks, but it was good enough for this. On Mon, Dec 31, 2012 at 12:55 PM, Mariano Bono arma...@gmail.com wrote: 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.

[dev] My dwmstatusbar.c

2012-12-30 Thread Mariano Bono
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. /* * Made by armaoin arma...@gmail.com 2012-12-30 (yes the Mayans were wrong) * based

Re: [dev] My dwmstatusbar.c

2012-12-30 Thread Comrade DOS
You can do same with few lines of bash. ;) 2012/12/30 Mariano Bono arma...@gmail.com 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