-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.keynavrc
175 lines (150 loc) · 4.69 KB
/
.keynavrc
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
# This is a keynavrc file. Yours should live in
# $HOME/.keynavrc
#
# Lines beginning with '#' are comments.
# Format is:
# keysequence cmd1,cmd2,cmd3...
#
# The 'start' command alone is handled specially, in that any key sequence
# mapped to 'start' will be grabbed when keynav starts up so you can invoke it
# to activate keynav. The remaining keys are only recognized while keynav is
# active
#
# Project page; http://www.semicomplete.com/projects/keynav
daemonize # background keynav
clear # clear all previous keybindings
q record ~/.keynav_macros
shift+at playback
# ctrl+semicolon start, sh "exec transset-df -i $(xdotool search --class keynav) 0.6"
super+semicolon start, grid 4x4
#ctrl+semicolon start,cut-left .95, cut-up .95, move-right 50, move-down 20
#alt+semicolon start,move-right
Tab restart
Escape end
ctrl+bracketleft end
period windowzoom,cut-right,warp,click 1,end
super+period windowzoom,cut-right,warp,click 1,end
comma windowzoom,cut-left,warp,click 1,end
super+comma windowzoom,cut-left,warp,click 1,end
semicolon warp,end
space warp,click 1,end
control+space warp,click 3,end
shift+space warp,click 2,end
apostrophe warp,drag 1
apostrophe warp,drag 1
shift+apostrophe drag 2
# f3 grid 3x3
# f4 grid 4x4
1 clear, cell-select 1x1, warp, click 1, end
2 clear, cell-select 2x1, warp, click 1, end
3 clear, cell-select 3x1, warp, click 1, end
4 clear, cell-select 4x1, warp, click 1, end
5 clear, cell-select 1x2, warp, click 1, end
6 clear, cell-select 2x2, warp, click 1, end
7 clear, cell-select 3x2, warp, click 1, end
8 clear, cell-select 4x2, warp, click 1, end
9 clear, cell-select 1x3, warp, click 1, end
0 clear, cell-select 2x3, warp, click 1, end
ctrl+1 clear, cell-select 3x3, warp, click 1, end
ctrl+2 clear, cell-select 4x3, warp, click 1, end
ctrl+3 clear, cell-select 1x4, warp, click 1, end
ctrl+4 clear, cell-select 2x4, warp, click 1, end
ctrl+5 clear, cell-select 3x4, warp, click 1, end
ctrl+6 clear, cell-select 4x4, warp, click 1, end
e grid-nav toggle
f grid-nav on, click 1,end
shift+f clear, grid-nav on, grid 15x15
h cut-left
j cut-down
k cut-up
l cut-right
y cut-left,cut-up
u cut-right,cut-up
b cut-left,cut-down
n cut-right,cut-down
shift+h move-left
shift+j move-down
shift+k move-up
shift+l move-right
shift+y move-left,move-up
shift+u move-right,move-up
shift+b move-left,move-down
shift+n move-right,move-down
# ctrl+enter cursorzoom 20 20
ctrl+h move-left 0.05
ctrl+j move-down 0.05
ctrl+k move-up 0.05
ctrl+l move-right 0.05
ctrl+y move-left,move-up 0.05
ctrl+u move-right,move-up 0.05
ctrl+b move-left,move-down 0.05
ctrl+n move-right,move-down 0.05
#1 cell-select 1x1,warp,end
#2 cell-select 1x2,warp,end
#3 cell-select 2x1,warp,end
#4 cell-select 2x2,warp,end
a cut-left
s cut-down
w cut-up
d cut-right
# Zoom to the current window
# w windowzoom
z windowzoom
c cursorzoom 100 100
#ctrl+w windowzoom
# Handy for holding super while using keynav:
super+h cut-left
super+j cut-down
super+k cut-up
super+l cut-right
super+y cut-left,cut-up
super+u cut-right,cut-up
super+b cut-left,cut-down
super+n cut-right,cut-down
# Activate bottom pane
super+apostrophe warp,cut-down,cut-down,click 1,end
### Example using the 'sh' command.
# This xdotool invocation require xdotool >= 2.20100623 for 'command chaining'
g sh "xdotool search --title -- '- Google Chrome' windowactivate key --window 0 --clearmodifiers ctrl+l",end
# Paste!
v sh "xdotool key shift+Insert",end
ctrl+v sh "xdotool key shift+Insert",end
# Activate chrome, make a new tab, paste in the url bar, then press return.
# This xdotool invocation require xdotool >= 2.20100623 for 'command chaining'
t sh "xdotool search --title -- '- Google Chrome' windowactivate --sync key --window 0 --clearmodifiers ctrl+t shift+Insert Return",end
### Drag examples
# Start drag holding the left mouse button
#q drag 1
# Start drag holding middle mouse + control and shift
#w warp
### History
slash history-back
### Example of cut and move without the default values
#h cut-left .75
#j cut-down .75
#k cut-up .75
#l cut-right .75
#shift+h move-left .50
#shift+j move-down .50
#shift+k move-up .50
#shift+l move-right .50
### Example using a 2-row, 3-column grid,
# mapped to Insert/Home/PageUp/etc...
#6 grid 2x3
#Insert cell-select 1x1
#Home cell-select 1x2
#Prior cell-select 1x3 # PageUp
#Delete cell-select 2x1
#End cell-select 2x2
#Next cell-select 2x3 # PageDown
### Example using a 3x3 grid with nethack-vi keys
#ctrl+semicolon start, grid 3x3
#h cell-select 2x1 # left
#j cell-select 3x2 # down
#k cell-select 1x2 # up
#l cell-select 2x3 # right
#y cell-select 1x1 # up-left
#u cell-select 1x3 # up-right
#b cell-select 3x1 # down-left
#n cell-select 3x3 # down-right
#period cell-select 2x2 # center