KP_HOME should be KP_Home, I beleive. However, it's easier to index an array than remember all the kp names
On Sat, Oct 10, 2015 at 10:50 AM, Daniel Sont <dan.s...@gmail.com> wrote: > > local numpad = { "#87", "#88", "#89", "#83", "#84", "#85", "#79", "#80", > "#81" } > > // numpad[1..9] > awful.key({ mod, }, numpad[5], function () > awful.util.spawn("google-chrome-beta") end), > > On Sat, Oct 10, 2015 at 9:24 AM, Alexander Tsepkov <atsep...@gmail.com> > wrote: > >> My numpad keys don't seem to be recognized by awesome wm (I've tried >> using KP_0 through KP_9 - like xev reports) as well as names like KP_HOME, >> with no effect. Remapping same function to something like modkey +"y" works >> fine. I'm also confused because I don't see much info about this online >> aside from a thread or 2 claiming that what I'm doing should work: >> http://comments.gmane.org/gmane.comp.window-managers.awesome/3101 >> >> Here is one example: >> >> awful.key({ modkey, }, "KP_1", function (c) >> naughty.notify({title='foo',text='dd'}) end), >> >> >> Thanks, here is my version info: >> >> $ awesome -v >> awesome v3.5.6 (For Those About To Rock) >> • Build: Jan 14 2015 20:56:29 for x86_64 by gcc version 4.8.2 >> (buildd@lgw01-04) >> • Compiled against Lua 5.1.5 (running with Lua 5.1) >> • D-Bus support: ✔ >> >> >