-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.Xmodmap
37 lines (26 loc) · 849 Bytes
/
.Xmodmap
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
! ----------------------------------------------------------------------------
! Turn Caps_Lock into Control
! Turn Control into Alt
! - (Move "Alt" below the letter "A" on the keyboard).
! Clear the keys
clear lock
clear control
clear mod1
! Assign the keys
keycode 66 = Control_L
keycode 37 = Alt_L Meta_L
keycode 64 =
! Add them back with the new assignments
add control = Control_L Control_R
add mod1 = Alt_L Meta_L
! ----------------------------------------------------------------------------
! When Alt is pressed, turn HJKL keys into arrow keys (mimic vim-keybindings)
keycode 37 = Mode_switch
keysym h = h H Left
keysym l = l L Right
keysym j = j J Down
keysym k = k K Up
! Swap < and ` keys
keycode 49 = less greater
keycode 94 = grave asciitilde
! Note: Enter `$ xev` in the terminal to identify the keycode and the name.