Custom keyboard layout problem(switching Esc and Capslock)

I switched my Esc and Capslock key by following this wiki page:

In the "mapping file" i swapped this:

keycode   9 = Escape NoSymbol Escape
keycode  66 = Caps_Lock NoSymbol Caps_Lock

to this:

keycode   9 = Caps_Lock NoSymbol Caps_Lock
keycode  66 = Escape NoSymbol Escape

It did kind of work, but not really: The Esc is now Capslock but the Capslock key dose now both: Esc and activate Capslock at the same time (I hope its not a Hardware problem of the keyboard?).
Has somebody any Idea?

You need to clear the lock. I use xmodmap for my configs, so:

! Unmap capslock
clear Lock
keycode 135 = End
!keycode 108 = Multi_key
keycode 108 = Home

! Leave mod4 as windows key _only_

clear mod3
clear mod4
add mod3 = Hyper_L
add mod4 = Super_L Super_R
!remove mod4 = Hyper_L

!add mod5 = Hyper_L

keycode 65 = Hyper_L
keycode any = space

"!" is a comment, it is just the top section that applies to you (my spacebar acts as a Hyper when held and my Alt-gr = home and Menu = end).

1 Like

Thank you!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by