xmodmap: Change layout and disable xcape

Change layout so that instead of rebinding caps_lock, escape and ctrl_r
in a circle, the caps_lock key now just emulates escape. Caps_lock can now be
accessed by pressing both Shifts together.

Because of that xcape is disabled for now too. Not sure if I will keep
it this way.
Caps_lock is now triggered on every shift for a very small time too,
that is why the caps_lock binding is removed from the i3 config.
This commit is contained in:
2021-02-16 17:24:27 +01:00
parent 965e725bc2
commit 9c593f5e55
3 changed files with 6 additions and 14 deletions

View File

@@ -1,16 +1,9 @@
! Bind Caps_Lock on Escape key, Ctrl_R on Caps_Lock key and Escape on Control_R
! The Caps_Lock key is also used for Escape through xcape
remove Control = Control_R
! Bind Caps_Lock to Escape
remove Lock = Caps_Lock
keycode 9 =
keycode 9 = Caps_Lock
keycode 66 =
keycode 66 = Control_R
keycode 66 = Escape
keycode 105 =
keycode 105 = Escape
add Control = Control_R
add Lock = Caps_Lock
! Bind both Shift keys together to Caps_Lock
keycode 50 = Shift_L Caps_Lock
keycode 62 = Shift_R Caps_Lock