-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathXmodmap
46 lines (41 loc) · 1.29 KB
/
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
37
38
39
40
41
42
43
44
45
46
! The essentially maps a standard keyboard
! from:
! Function | Control | Super | Alt | Space | Alt | Menu | Control
! to:
! Function | Super | Alt | Control | Space | Control | Alt | Super
! with also adding Caps Lock as an Alt key because
! no one uses the Caps Lock key.
! output taken from:
! xmodmap -pke | egrep '(Control|Super|Alt|Menu)'
! Use to set keycodes correctly below. List reordered to match
! keys from left to right.
!! Original key bindings:
! keycode 66 = CapsLock
! keycode 37 = Control_L NoSymbol Control_L
! keycode 133 = Super_L NoSymbol Super_L
! keycode 64 = Alt_L Meta_L Alt_L Meta_L
! keycode 108 = Alt_R Meta_R Alt_R Meta_R
! keycode 134 = Super_R NoSymbol Super_R
! keycode 135 = Menu
! keycode 105 = Control_R NoSymbol Control_R
! First clear all modifiers, caps lock & control
clear lock
clear control
clear mod1
clear mod2
clear mod3
clear mod4
keycode 66 = Hyper_L
keycode 37 = Super_L
keycode 133 = Alt_L Meta_L
keycode 64 = Control_L
keycode 108 = Control_R
keycode 134 = Alt_R Meta_R
keycode 135 = Alt_R Meta_R
keycode 105 = Super_R
! We need to set keycodes first, as some programs (emacs!) read
! the key names and seem to ignore what's below.
add mod1 = Alt_R Alt_L Meta_R Meta_L
add mod3 = Hyper_L
add mod4 = Super_R Super_L Menu
add control = Control_R Control_L