-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.xremap.conf
68 lines (49 loc) · 1.6 KB
/
.xremap.conf
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
# vim:fenc=utf-8 ff=unix ft=ruby ts=2 sw=2 sts=2
window class_not: ['gnome-terminal-server', 'Alacritty', 'nyaovim'] do
remap 'C-b', to: 'Left'
remap 'C-f', to: 'Right'
remap 'C-p', to: 'Up'
remap 'C-n', to: 'Down'
remap 'M-b', to: 'Ctrl-Left'
remap 'M-f', to: 'Ctrl-Right'
remap 'C-a', to: 'Home'
remap 'C-e', to: 'End'
# remap 'C-k', to: ['Shift-End', 'BackSpace']
remap 'C-u', to: ['Shift-Home', 'BackSpace']
remap 'C-y', to: 'Shift-Insert'
remap 'C-h', to: 'BackSpace'
remap 'C-d', to: 'Delete'
remap 'M-h', to: 'Ctrl-BackSpace'
remap 'C-w', to: 'Ctrl-BackSpace'
remap 'M-d', to: 'Ctrl-Delete'
%w[a c f n r v p w t x z].each do |key|
remap "Super-#{key}", to: "C-#{key}"
end
%w[n t r z].each do |key|
remap "Super-Shift-#{key}", to: "C-#{key}"
end
# remap "Super-Tab-z", to: "C-Tab-z"
end
window class_only: ['xfce4-terminal', 'Alacritty', 'gnome-terminal-server'] do
remap 'Super-c', to: 'Ctrl-Shift-c'
remap 'Super-v', to: 'Ctrl-Shift-v'
end
window class_only: 'google-chrome' do
# browser back and forward keybind like MacOS version
remap 'Super-bracketleft', to: 'M-Left'
remap 'Super-bracketright', to: 'M-Right'
(0..9).each do |key|
remap "Super-#{key}", to: "C-#{key}"
end
remap "C-q", to: "C-w"
remap "Super-q", to: "Super-w"
end
window class_only: 'slack' do
remap 'Super-k', to: 'Ctrl-k'
remap 'Super-k', to: 'Alt-Up'
remap 'Super-j', to: 'Alt-Down'
remap 'Super-Shift-k', to: 'Alt-Shift-Up'
remap 'Super-Shift-j', to: 'Alt-Shift-Down'
remap 'Super-bracketleft', to: 'M-Left'
remap 'Super-bracketright', to: 'M-Right'
end