You are not logged in.

#1 2013-10-29 09:55:54

Gradient
Member
Registered: 2013-05-19
Posts: 101

fn-keys with dwm

I have the following in my config.h :

static const char *volumedowncmd[]  = { "amixer", "set", "Master", "5%-", "unmute", NULL };

static Key keys[] = {
	{ 0,                            XF86XK_AudioLowerVolume,      spawn,           {.v = volumedowncmd } },
};

I have a compilation error. Replacing 'XF86XK_AudioLowerVolume' with 'XK_x' works. All examples I found used 'XF86XK_AudioLowerVolume'. I tried 'XF86AudioLowerVolume', but it doesn't work.

Last edited by Gradient (2013-10-29 09:56:31)

Offline

#2 2013-10-29 11:25:21

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,546
Website

Re: fn-keys with dwm

Either use the hex codes, or include the XF86keysym header in your config.h before you use those.  They need to be defined before you can use them.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

Board footer

Powered by FluxBB