2009/2/15 Jeremy Jay <[email protected]>: > 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 .
