You are not logged in.

#1 2012-05-28 17:05:46

Allok
Member
Registered: 2012-04-30
Posts: 20

What is the name of “Fn” key for Awesome wm?

For example:

awful.key({"Shift", }, "Left", volwidget.down)

How to find out what to write instead of "Shift" to use "Fn" key?

Offline

#2 2012-05-28 17:15:43

wolfcore
Member
From: California
Registered: 2012-03-06
Posts: 137

Re: What is the name of “Fn” key for Awesome wm?

Use a program like xbindkeys or xev to find out.

Offline

#3 2012-05-28 17:35:40

Allok
Member
Registered: 2012-04-30
Posts: 20

Re: What is the name of “Fn” key for Awesome wm?

wolfcore,

it doesn't help. These programs react to all keys except "Fn".

Offline

#4 2012-05-28 17:42:13

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

Re: What is the name of “Fn” key for Awesome wm?

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

#5 2012-05-28 18:09:48

Allok
Member
Registered: 2012-04-30
Posts: 20

Re: What is the name of “Fn” key for Awesome wm?

Trilby,

Thank you very much for explanation! Your idea has helped a lot.

Offline

#6 2012-05-29 20:12:24

berz_
Member
Registered: 2011-06-12
Posts: 26

Re: What is the name of “Fn” key for Awesome wm?

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

#7 2012-05-29 22:46:49

JackH79
Member
From: Australia
Registered: 2009-06-18
Posts: 663
Website

Re: What is the name of “Fn” key for Awesome wm?

You can also use the plain text key descriptors you get with xev in awesome (eg. "t", "Return", or "XF86AudioRaiseVolume").

Offline

Board footer

Powered by FluxBB