1

I'm setting up key bindings in dwm for things like changing brightness and taking screenshots. In order to bind the appropriate key, I followed someone else's example and added

#define XF86AudioMute 0x1008ff12 

to my config.h, and referred to that key in my keybinding.

This works fine, but I have no idea where this value came from or how to find other similar values. For example, the PrtSc button on my keyboard is one that I haven't been able to find a value for.

What are these values, and how do I find them?

1 Answer 1

2

The definition

#define XF86AudioMute 0x1008ff12 

comes from the header file XF86keysym.h, though it's spelled differently:

#define XF86XK_AudioMute 0x1008FF12 /* Mute sound from the system */ 

To find the keysyms that your keyboard sends, use xev. Not all keys will send keysyms, however (in that case, you can't do much).

Further reading:

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.