Thanks for the good suggestions - I'll have a pop at the daemon and
see how it goes.
Cheers,
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
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,
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
If you want to listen for alsa mixer changes you can try scripting
around `amixer events`. It seems to be undocumented but works.
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 } },
{
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!
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
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.
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
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
11 matches
Mail list logo