Background: Running Arch Linux on KDE. KDE shortcuts have a problem with being saved past reboot so i'm using xmodmap and xbindkeys.

So I am using xmodmap. Right now caps lock is mapped to meta (hyper_L) which is assigned to Mod4 (along with Super). I am trying to use the meta shortcut (meta+c) that I've assigned to open chromium. While it works while I'm focused on some applications (like settings), in terminal it simply types c. When i changed the shortcut to ctl+9, it worked.


How do I use meta shortcuts in terminal (terminator)?


How can I map caps lock to two modifiers (either ctl+shift, ctl+super, or ctl+alt) as opposed to just being mapped to one modifier? And do you have a recommendation on what combo would be best for custom shortcuts as not to interfere with most other shortcuts?

My .xmodmap looks like this:

clear Lock
clear Mod4
add Mod4    = Super_L Super_R Hyper_L
keycode 66 = Hyper_L

and xmodmap yields:

shift       Shift_L (0x32),  Shift_R (0x3e)
control     Control_L (0x25),  Control_R (0x69)
mod1        Alt_L (0x40),  Alt_R (0x6c),  Meta_L (0xcd)
mod2        Num_Lock (0x4d)
mod4        Super_L (0x85),  Super_R (0x86),  Super_L (0xce),  Hyper_L (0xcf)
mod5        ISO_Level3_Shift (0x5c),  Mode_switch (0xcb)
  • You need XKB for that, xmodmap alone can't make a single key apply two modifiers. – Gilles Aug 8 '15 at 8:10

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.