- In order to make our life easier: set Caps Lock key to behave as
Escape
. - In order to keep Emacs-style shortcuts (
Ctrl-O
,Ctrl-W
, etc.): keep left Ctrl key behaviour as is. - In order to bring MacOS-style shortcuts (
Cmnd-C
,Cmnd-V
, etc.): set left Alt key to behave asCtrl_L
. - In order to have access to
Alt_L
button: set left Super key to behave asAlt_L
.
The .Xmodmap
file:
! Set
remove Lock = Caps_Lock
keysym Caps_Lock = Escape
! First clear all modifiers & control
clear control
clear mod1
clear mod4
! make Alt_L to act as Contol_L
keycode 64 = Control_L NoSymbol Control_L
! make Super_L to act as Alt_L
keycode 133 = Alt_L Meta_L Alt_L Meta_L
! We need to set keycodes first, as some programs (emacs!) read
! the key names and seem to ignore what's below.
add mod1 = Alt_L Alt_R Meta_L Meta_R
add mod4 = Super_L Super_R
add control = Control_L Control_R