Instead of using an own xkb layout, modify the layout with xmodmap. Use xcape to use Caps_Lock as Ctrl and Escape depending on if it was pressed in combination vs alone. Add hints for xinput.
17 lines
343 B
Plaintext
17 lines
343 B
Plaintext
! 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
|
|
remove Lock = Caps_Lock
|
|
|
|
keycode 9 =
|
|
keycode 9 = Caps_Lock
|
|
|
|
keycode 66 =
|
|
keycode 66 = Control_R
|
|
|
|
keycode 105 =
|
|
keycode 105 = Escape
|
|
|
|
add Control = Control_R
|
|
add Lock = Caps_Lock
|