for ion2 in global_bindings I entered:
kpress("KP_Subtract", make_exec_fn("amixer -q set Master 2-")),
kpress("KP_Add", make_exec_fn("amixer -q set Master 2+")),
kpress("KP_Enter", make_exec_fn("amixer -q set Master toggle")),
I wanted to be able to raise/lower and mute/unmute the volume by
pressing - + and enter on the numeric keyboard, when numlock is
inactive. However I noticed that these keys are called the same with
or without numlock active (according to the program xev, which I use
to find out key names). I changed to the keys 4,5,6 (KP_Left,
KP_Begin, KP_Right) because I noticed that they are called KP_4, KP_5,
KP_6 with numlock active. However, that didn't help either. Ion steals
these keypresses regardless. Is it possible to somehow specify
bindings with or without numlock? I rarely use the numeric keyboard
for entering numbers anyway, so it's not very important, but it would
be nice.
--
Jon �slund