You are not logged in.

#1 2012-11-14 15:46:05

NMigo
Member
Registered: 2012-05-03
Posts: 10

[Solved] Swapping Super to Alt keys in console (loadkeys)

Hi need some help with loadkeys, haven't been able to find proper docs...

My laptop suffered from some rain and both of my alt key are not working, this is minor to the amount of water the notebook had, but still annoying not to have alt keys.

So I want to use the Super and Hiper keys (the windows and the right-click keys) as Alt_L and Alt_R

Under X, I have been able to do this with Xmodmap:

remove mod4 = Super_L
add mod1 = Super_L

but on console I haven't been able to use loadkeys properly.

I have tried to keymap the key codes (125 and 126) to alt, Alt, AltGr, Alt_L, Alt_R, but no success.  I suppose that because alt is a meta key, I need to also do something else, but have tried multiple configs, overwriting the alt keys assignation with no success.

Any keyboard mapping expert in the forum? cannot switch to the different vterminals without an external keyboard (or remapping shortcuts).

Last edited by NMigo (2012-11-14 19:24:31)

Offline

#2 2012-11-14 18:38:55

Lord Bo
Member
Registered: 2012-11-11
Posts: 143

Re: [Solved] Swapping Super to Alt keys in console (loadkeys)

You could swap these keys by using setkeycodes (This will map for console and X11 !):

# Super_L zu Alt
setkeycodes e05b 56

The proper method should however be:
https://wiki.archlinux.org/index.php/Ma … o_keycodes

Offline

#3 2012-11-14 19:25:20

NMigo
Member
Registered: 2012-05-03
Posts: 10

Re: [Solved] Swapping Super to Alt keys in console (loadkeys)

Thanks, works great, wasted days looking for a solution... smile

Offline

Board footer

Powered by FluxBB