Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Keys: Super, Meta, Mod ....
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Desktop Environments
View previous topic :: View next topic  
Author Message
krax
n00b
n00b


Joined: 29 May 2011
Posts: 67
Location: Troy, MI

PostPosted: Wed Mar 12, 2014 10:35 am    Post subject: Keys: Super, Meta, Mod .... Reply with quote

I am working on some tilling managers. There is lots of reference to keys such as Meta and Mod.
I did xmodmap and I get this:

Code:
xmodmap:  up to 4 keys per modifier, (keycodes in parentheses):

shift       Shift_L (0x32),  Shift_R (0x3e)
lock        Caps_Lock (0x42)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod3     
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)


There are some question buzzing me like:
1. What are Super and Hyper keys?
2. ISO_Level3_Shift?
3. Mode_switch?
4. What is Meta_L?

PS: could we discern anything from that hex numbers?
Back to top
View user's profile Send private message
Telemin
l33t
l33t


Joined: 25 Aug 2005
Posts: 734
Location: Glasgow, UK

PostPosted: Wed Mar 12, 2014 11:01 am    Post subject: Reply with quote

Greetings, I hope you are enjoying the tiling! I have been using Xmonad a few years now and haven't looked back.

I have found that these things tend to be a little bit keyboard dependent (or maybe I just enjoy using odd keyboards!), but you can use xev (X event viewer) from portage to find out what all of your various KB keys are mapped to. From there your WM config will let you map them to functions however you want.

The history is that the old space cadet keyboard (wiki) actually had 7 modifier keys called these things, and the names have been inherited and reused through the evolution of *nix.

In general though

ISO_Level3_shift will be you Alt_Gr/compose key
Super_L and Super_R are your left and right windows keys

Then for my keyboard
Menu is the right click menu key (if you have one, near your Alt_Gr key)

hope this helps

-telemin-
_________________
The Geek formerly known as -Freestyling-
When you feel your problem has been solved please add [Solved] to the topic title.
Please adopt an unanswered post
Back to top
View user's profile Send private message
krax
n00b
n00b


Joined: 29 May 2011
Posts: 67
Location: Troy, MI

PostPosted: Wed Mar 12, 2014 11:13 am    Post subject: Reply with quote

xev didn't help.
even for known keys such as Shift_L the hex numbers are different.
another way or tell me what are those keys.
Back to top
View user's profile Send private message
Telemin
l33t
l33t


Joined: 25 Aug 2005
Posts: 734
Location: Glasgow, UK

PostPosted: Wed Mar 12, 2014 11:22 am    Post subject: Reply with quote

Hi, you should find that the keycode reported (in decimal) by xev, matches the number (in hex) reported by xmodmap if you express them both in the same base.

You will probably find xodmap references a key or two that aren't actually there, for example I allegedly have a two super_L keys and a hyper_L hey, when of course in reality I only have one super_L and no hyper key at all.

-telemin-
_________________
The Geek formerly known as -Freestyling-
When you feel your problem has been solved please add [Solved] to the topic title.
Please adopt an unanswered post
Back to top
View user's profile Send private message
krax
n00b
n00b


Joined: 29 May 2011
Posts: 67
Location: Troy, MI

PostPosted: Wed Mar 12, 2014 11:34 am    Post subject: Reply with quote

Thanks;
That was helpful; very helpful
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Desktop Environments All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum