In Window Managers circle there are some technical terms; couple of them are Mod keys and Meta keys. The questions here I am asking are
-
What exactly are those and are they universal across different
keyboards. -
What ALT, SHIFT and CTRL (both right and left), Win and
right clickkeys are called?
I ask this because I am working on both tilling window managers and stack ones. and there are lots of references to this issue.
Answers:
Thank you for visiting the Q&A section on Magenaut. Please note that all the answers may not help you solve the issue immediately. So please treat them as advisements. If you found the post helpful (or not), leave a comment & I’ll get back to you as soon as possible.
Method 1
Keypresses in X have 8 modifier bits:
- Shift
- Lock
- Control
- Mod1
- Mod2
- Mod3
- Mod4
- Mod5
Any key can be bound to any of these modifiers, but (as you might imagine) typically the left/right Shift keys are bound to Shift, Caps Lock is bound to Lock, and left/right Ctrl are bound to Control. Conspicuously missing from the list is Alt, which is usually bound to Mod1. Tiling window managers also frequently refer to a single “mod key”, which is the modifier key chosen by the user for all the WM’s keybindings. For example, if the mod key is Alt, then Alt+J will generally advance to the next window.
Meta, Super, and Hyper are all keys from the old Symbolics keyboard that X still has internal keycodes for (so they can still be bound to modifiers). Super is still around on modern keyboards, as the
/Tux/whatever key next to Alt. It’s usually bound to Mod4. Meta and Hyper are both gone. Alt is sometimes called “Meta” because it replaced Meta’s functionality; I suspect emacs is mostly at fault for using Alt and Esc as replacements for meta in its keybindings. However, some people refer to the
key as “Meta” as well, so you should probably just avoid the term altogether.
By right click key you probably mean the Menu key which in many applications and operating systems functions similarly to to a right click on the mouse — it opens a context menu.
All methods was sourced from stackoverflow.com or stackexchange.com, is licensed under cc by-sa 2.5, cc by-sa 3.0 and cc by-sa 4.0