-
Notifications
You must be signed in to change notification settings - Fork 0
/
.Xmodmap
60 lines (53 loc) · 2 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
! NOTE: If you mess up, you can reset the keyboard with:
! setxkbmap -layout us
! Choose one (also see .bashrc for kbd-* aliases):
! A) FOR PC-style hardware keyboard:
! Left WIN (Super_L) key to Mode_switch (this brings out the 2nd and 3rd items of the keycode lines)
!keysym Super_L = Mode_switch
! B) FOR MAC-style hardware keyboard:
! Left Alt (Alt_L) key to Mode_switch (this brings out the 2nd and 3rd items of the keycode lines)
!keysym Alt_L = Mode_switch
! Set Left WIN (Super_L) to Alt (mod1)
!keysym Super_L = Alt_L
! Map CapsLock to Control_L
clear Lock
keysym Caps_Lock = Control_L
add Control = Control_L
! Let's make the Menu key a separate Shift,
! but reassign it first to avoid the original function
!keysym Menu = Super_L
!remove Mod1 = Alt_L
!add Mod5 = Alt_L
! Dead keys -- set accents like on the mac os x
!keycode 25 = w W dead_abovedot
keycode 26 = e E dead_acute
keycode 30 = u U dead_diaeresis
!keycode 31 = i I dead_horn
!keycode 38 = a A dead_macron
!keycode 43 = h H dead_macron
keycode 44 = j J dead_doubleacute
!keycode 45 = k K dead_abovering
!keycode 52 = z Z dead_hook
!keycode 53 = x X dead_belowdot
!keycode 54 = c C dead_cedilla
!keycode 55 = v V dead_caron
!keycode 56 = b B dead_breve
!keycode 57 = n N dead_ogonek
!keycode 49 = grave asciitilde dead_grave
! Left Shift should be much longer, so redefine the useless "lesser / greater" key next to it
keycode 94 = Shift_L Shift_L Shift_L Shift_L Shift_L Shift_L
! Special symbols on the number keys, like Euro
keycode 10 = 1 exclam U00A1 U2044
keycode 11 = 2 at U2122 U20AC
keycode 12 = 3 numbersign U00A3 U2039
keycode 13 = 4 dollar U00A2 U2040
keycode 14 = 5 percent U00A7 U2044
keycode 15 = 6 asciicircum dead_circumflex dead_circumflex
keycode 16 = 7 ampersand U00B6 U2021
keycode 17 = 8 asterisk U2022 U00B0
keycode 18 = 9 parenleft U00AA U00B7
keycode 19 = 0 parenright U00BA U201A
keycode 20 = minus underscore U2013 U2014
keycode 21 = equal plus U2260 U00B1
! Ellipsis
keycode 47 = semicolon colon U2026 U2116