2009/2/15 Jeremy Jay <dinkumator_AT_gmail.com>:
> spawn/execvp() is supposed to get each argument as a pointer, not all-in-one.
> all the commands you are having trouble with also happen to have arguments.
> On top of that, I don't think you have the right arguments for amixer...
>
> Here's the relevent parts of my config for an example:
>
> -----
> static const char *sound_up[] = { "/usr/bin/amixer", "-q", "set", "Master", "10+", NULL };
> static const char *sound_down[] = { "/usr/bin/amixer", "-q", "set", "Master", "10-", NULL };
> static const char *sound_mute[] = { "/usr/bin/amixer", "-q", "set", "Master", "toggle", NULL };
>
> static Key keys[] = {
> { 0, XF86XK_AudioRaiseVolume, spawn, {.v = sound_up } },
> { 0, XF86XK_AudioLowerVolume, spawn, {.v = sound_down } },
> { 0, XF86XK_AudioMute, spawn, {.v = sound_mute } },
> };
> -----
>
> Jeremy
Another option would be the SHCMD macro (defined in config.def.h).
-- - yiyus || JGL .Received on Sun Feb 15 2009 - 00:01:23 UTC
This archive was generated by hypermail 2.2.0 : Sun Feb 15 2009 - 00:12:09 UTC