-
Notifications
You must be signed in to change notification settings - Fork 0
/
.Xmodmap
91 lines (91 loc) · 1.9 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
! This is an xmodmap input file for the Happy Hacking Keyboard, model HHKB
! Lite/Pro 2. It assumes that the keymap is already set up for a gb-105
! keyboard, then applies fixes for arrow keys and British conventions
!
! I generally prefer to have the diamond and alt keys swapped using the SW5
! dipswitch turned on - anything referring to "alt" means the key printed as
! alt, but are actually not ever used as that.
!
! Fix the arrow keys
!
keycode 111 = Up
keycode 116 = Down
keycode 113 = Left
keycode 114 = Right
!
! Fix the Fn-Arrows to give PgUp, PgDown, Home and End
!
keycode 112 = Prior
keycode 117 = Next
keycode 110 = Home
keycode 115 = End
!
! Fix the Alt and Diamond keys
!
keycode 133 = Super_L
keycode 64 = Alt_L
keycode 108 = Alt_R
!
! Put Mode_switch on left "alt"
!
keycode 102 = Mode_switch
!
! Put the @ on shift + ' as British keyboards do
!
keycode 48 = apostrophe at
!
! Put the " on shift - 2 as British keyboards do
!
keycode 11 = 2 quotedbl
!
! Put the Pound (sterling) symbol on Mode_switch + shift + 3
!
keycode 12 = 3 numbersign sterling sterling
!
! Put the Euro symbol on Mode_switch + shift + e
!
keycode 26 = e E EuroSign
!
! Fix tilde
!
keycode 49 = grave asciitilde
!
! Fix backslash
!
keycode 51 = backslash bar
!
! Fix FN-Backspace = delete (when swap via DIP SW 2 ?)
!
keycode 77 = Delete
! !
! Remove all the existing modifier key mappings
!
clear Shift
clear Lock
clear Control
clear Mod1
clear Mod2
clear Mod3
clear Mod4
clear Mod5
!
! Put the modifier key mappings back
!
add Shift = Shift_L Shift_R
add Lock = Caps_Lock
add Control = Control_L Control_R
!
! including this line which makes both Alt keys and the left diamond key act as Alt keys
!
! Super_L
add Mod1 = Alt_L Alt_R
!
! makes the right diamond acts as the Mode_switch modifier (mapped to right
! diamond above)
!
add Mod3 = Mode_switch
add Mod5 = Scroll_Lock
!
! Mod4 usually maps to the super/windows key
!
add Mod4 = Henkan_Mode