Re: [dwm] Multimedia, print screen keys

From: Jake Todd <jaketodd422_AT_gmail.com>
Date: Sat, 14 Feb 2009 18:52:29 -0500

Thanks Jeremy, it's working now.

> 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
Received on Sat Feb 14 2009 - 23:52:29 UTC

This archive was generated by hypermail 2.2.0 : Sun Feb 15 2009 - 00:12:05 UTC