You are not logged in.
For example:
awful.key({"Shift", }, "Left", volwidget.down)How to find out what to write instead of "Shift" to use "Fn" key?
Offline
Use a program like xbindkeys or xev to find out.
Offline
wolfcore,
it doesn't help. These programs react to all keys except "Fn".
Offline
I suspect wolfcore thought you mean Fn keys as in F1 through F12.
If you mean the Fn modifier key available on some keyboards, then the answer is that X cannot see that key at all - at least not on it's own. You can bind Fn+<Somekey> combination. I have many such bindings.
You'll note when you run xev then hit a key then hit that same key while holding your Fn key, you'll get different output.
For the common media keys you'll see a key code starting with 0x1008ff. Volume down, for example is 0x1008ff11, up is 0x10088ff13.
Edit: Nothing will go in place of shift. This keybinding should not have a modifier key, just a plain binding of a hex keycode to the desired action.
Last edited by Trilby (2012-05-28 17:43:31)
"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman
Offline
Trilby,
Thank you very much for explanation! Your idea has helped a lot.
Offline
I also use my Fn keys in awesome in this part of my config:
--volume
awful.key({ }, "#122", function () volume("down") end),
awful.key({ }, "#123", function () volume("up") end),
awful.key({ }, "#121", function () volume("mute") end),
--brightness
awful.key({ }, "#232", function () brightness("down") end),
awful.key({ }, "#233", function () brightness("up") end)You might get lucky copying the keycodes. I remember X11 ate them (they didn't show up in xev), so I grabbed the codes in a TTY.
Offline
You can also use the plain text key descriptors you get with xev in awesome (eg. "t", "Return", or "XF86AudioRaiseVolume").
Offline