-
Notifications
You must be signed in to change notification settings - Fork 0
/
xmodmap
99 lines (90 loc) · 3.17 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
!
! NOTE: this file no longer used, we use xkb now, see 'xkeymap'
!
! filename: was .xmodmaprc, now .Xmodmap, changed somewhere:
!
! $ grep -sir \\\.xmodmap /etc
! /etc/xorg/xinit/xinitrc-common:usermodmap=$HOME/.Xmodmap
! /etc/gconf/gconf.xml.defaults/%gconf-tree.xml:
! <longdesc>Run xmodmap if .xmodmap/.Xmodmap exists.</longdesc>
!
! (although we do not use that, but keeping it aligned with upstream is good)
!
! 'clear', 'remove', 'add' deal with modifiers ONLY
! 'clear' is like 'remove' for all (just wipes it)
!
! order: unmodified Shift Mode_switch Mode_switch+Shift
! for some reason this doesnt work out of box on mbpr 12,1 but did work
! correctly on 11,1... on former tilde/backtick generates < and > instead
! but this will need to be hermes-specific branch
!
!keycode 0x3c =
! make capslock key escape
clear Lock
keycode 0x42 = Escape Caps_Lock
! shift-capslock -> capslock just doesn't work
!add Lock = Caps_Lock
keycode 0x17 = Control_L Tab
keycode 0x33 = Control_R bar
keycode 0x16 = BackSpace backslash
clear Control
add Control = Control_L
add Control = Control_R
!latin capital A with acute Á 0x00c1 #193 Aacute
!latin capital E with acute É 0x00c9 #201 Eacute
!latin capital I with acute Í 0x00cd #205 Iacute
!latin capital N with tilde Ñ 0x00d1 #209 Ntilde
!latin capital O with acute Ó 0x00d3 #211 Oacute
!latin capital U with acute Ú 0x00da #218 Uacute
!latin capital U with umlaut Ü 0x00dc #220 Udiaeresis
!latin inverted question mark ¿ 0x00bf #191 questiondown
!latin small A with acute á 0x00e1 #225 aacute
!latin small e with acute é 0x00e9 #233 eacute
!latin small I with acute í 0x00ed #237 Iacute
!latin small N with tilde ñ 0x00f1 #241 ntilde
!latin small o with acute ó 0x00f3 #243 oacute
!latin small U with acute ú 0x00fa #250 uacute
!latin small U with umlaut ü 0x00fc #252 udiaeresis
!latin inverted excl point ¡ 0x00a2 #161 exclamdown
!
! mbpr with swap_opt_cmd=1 and iso_layout=0 kernel args
! 0x85 133 option left
! 0x86 134 option right
! 0x40 64 command left
! 0x6c 108 command right
!
! we want Super_R to generate Mode_switch for spanish letters
! note: this has to be present *before* we do anything with Super_R
!
!keycode 0x86 = Mode_switch
!clear mod5
!add mod5 = Mode_switch
!keysym a = a A aacute Aacute
!keysym e = e E eacute Eacute
!keysym i = i I iacute Iacute
!keysym n = n N ntilde Ntilde
!keysym o = o O oacute Oacute
!keysym u = u U uacute Uacute
!keysym q = q Q questiondown questiondown
!keysym x = x X exclamdown exclamdown
! make Alt_R generate Super_R instead, which we use in our wmrc to map to
! injections of tmux prefix-action sequences (to avoid multiple keypresses)
!
keycode 0x6c = Super_R
keycode 0x86 = Super_R
clear mod4
add mod4 = Super_R
! nothing else is bound to mod3, reserve Super_L for it so Super_R can be
! assigned to something else, at time of writing using this for prefix when
! testing out new window manager under Xephyr
! testing with external keyboard with keys swapped
!
!keycode 0x40 = Super_L
!clear mod3
!add mod3 = Super_L
! still want to be able to access mod1 modifier map with an alt key
! so we only use Alt_L for it, leave real Alt_R (0x6c) on mod4 (above)
!
keycode 0x85 = Alt_L
clear mod1
add mod1 = Alt_L