forked from xremap/xremap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.yml
175 lines (150 loc) · 3.52 KB
/
config.yml
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
modmap:
- name: Global
remap:
# CapsLock/Ctrl_L -> Esc
CapsLock: Esc
Ctrl_L: Esc
# HHKB: [Alt_L] [Muhenkan] [Space] [Henkan] [KatakanaHiragana]
Alt_L: Ctrl_R # for Ctrl+Click
Muhenkan: Ctrl_L
Henkan: Shift_L
- name: Kana -> Windows
application:
not: jetbrains-idea
remap:
# Use Windows since Alt is annoying in Electron apps (Slack, Nocturn)
KatakanaHiragana: Win_R
- name: Kana -> Alt
application:
only: jetbrains-idea
remap:
# Use Alt since Windows is annoying in IDEA
KatakanaHiragana: Alt_L
keymap:
- name: IDEA (modified from Default)
application:
only: jetbrains-idea
remap:
# Emacs basic
# C-b: left # for Vim
# C-f: right # for Vim
C-p: up
C-n: down
# Emacs word
Super-b: C-left
Super-f: C-right
# Emacs lines
C-a: home # TODO: Alt-C-a
C-e: end # TODO: Alt-C-e
C-k: [Shift-end, backspace] # TODO: Alt-C-k
# Alt -> Ctrl
M-a: C-a
M-z: C-z
M-x: C-x
#M-c: C-c # use C-c for Esc, M-c for copy
#M-v: C-v # use C-v for Vim, M-v for paste
#M-w: C-w # avoid conflict with prefix
M-t: C-t
M-l: C-l
# actually these are vim insert mode bindings, but compatible with shell
# C-w: [C-Shift-left, delete]
C-d: delete
Super-d: C-delete
# workaround prefix key bug
M-r:
remap:
'3': C-M-3
'0': C-M-0
# workaround
C-c: Esc
- name: Google Search
application:
only: Google-chrome
remap:
Super-o: C-Shift-tab
Super-p: C-tab
Super-s: C-f
- name: Terminal
application:
only: Gnome-terminal
remap:
Super-o: M-o
Super-p: M-p
Super-j: M-j
Super-k: M-k
Super-r: M-r
Super-b: M-b
Super-f: M-f
Super-d: M-d
Super-i: M-i
Super-w: M-w
Super-w: M-w
Super-t: M-t
Super-c: M-c
Super-v: M-v
- name: Nocturn
application:
only: Nocturn
remap:
Super-j: M-j
Super-k: M-k
Super-o: M-o
Super-p: M-p
Super-Enter: Shift-Enter
- name: Slack
application:
only: Slack
remap:
Super-o: C-Shift-tab
Super-p: C-tab
Super-n: C-k
Super-k: M-up
Super-j: M-down
C-M-k: Shift-Alt-up
C-M-j: Shift-Alt-down
Super-1: C-1
Super-2: C-2
Super-3: C-3
Super-4: C-4
Super-5: C-5
Super-6: C-6
Super-7: C-7
Super-8: C-8
Super-9: C-9
- name: Default -- some of these are overridden by the above definitions
application:
not: [Google-chrome, Slack, Gnome-terminal, jetbrains-idea]
remap:
# Emacs basic
C-b: left
C-f: right
C-p: up
C-n: down
# Emacs word
Super-b: C-left
Super-f: C-right
# Emacs lines
C-a: home # TODO: Alt-C-a
C-e: end # TODO: Alt-C-e
C-k: [Shift-end, backspace] # TODO: Alt-C-k
# Alt -> Ctrl
Super-a: C-a
Super-z: C-z
Super-x: C-x
Super-c: C-c
Super-v: C-v
Super-w: C-w
Super-t: C-t
Super-l: C-l
# Tab changes + Alt-Enter simulation
Super-o: C-Shift-tab
Super-p: C-tab
Super-Enter: M-Enter
# actually these are vim insert mode bindings, but compatible with shell
C-w: [C-Shift-left, delete]
C-d: delete
Super-d: C-delete
# Underscore without Shift
RO: Shift-RO
# SKK hack for Chrome
C-j: C-m