-
Notifications
You must be signed in to change notification settings - Fork 1
/
.keynavrc
164 lines (142 loc) · 4.17 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
# This is a keynavrc file. Yours should live in
# $HOME/.keynavrc
#
# Lines beginning with '#' are comments.
# Format is:
# keysequence cmd1,cmd2,cmd3...
#
# Other special values are:
# 'clear' on a line by itself (no quotes) will erase all keybindings
# (including the defaults)
# 'daemonize' on a line by itself (no quotes) will make keynav background
# after parsing the configfile and having no critical errors.
#
# 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
# Use 'clear' to blow away any previous keybindings
#clear
# Use 'daemonize' to background ourselves.
#daemonize
super+ctrl+w start
Escape end
ctrl+bracketleft end
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 0.5
shift+j move-down 0.5
shift+k move-up 0.5
shift+l move-right 0.5
shift+y move-left 0.5,move-up 0.5
shift+u move-right 0.5,move-up 0.5
shift+b move-left 0.5,move-down 0.5
shift+n move-right 0.5,move-down 0.5
space warp
semicolon warp
1 warp,click 1
2 warp,click 2
3 warp,click 3
4 warp,click 4 # Mousewheel up
r warp,click 5 # Mousewheel down
5 warp,click 6 # Mousewheel left
6 warp,click 7 # Mousewheel right
ctrl+shift+1 warp,click 1 ctrl+shift
ctrl+shift+2 warp,click 2 ctrl+shift
ctrl+shift+3 warp,click 3 ctrl+shift
ctrl+shift+4 warp,click 4 ctrl+shift # Mousewheel up
ctrl+shift+r warp,click 5 ctrl+shift # Mousewheel down
ctrl+shift+5 warp,click 6 ctrl+shift # Mousewheel left
ctrl+shift+6 warp,click 7 ctrl+shift # Mousewheel right
ctrl+1 warp,click 1 ctrl
ctrl+2 warp,click 2 ctrl
ctrl+3 warp,click 3 ctrl
ctrl+4 warp,click 4 ctrl # Mousewheel up
ctrl+r warp,click 5 ctrl # Mousewheel down
ctrl+5 warp,click 6 ctrl # Mousewheel left
ctrl+6 warp,click 7 ctrl # Mousewheel right
shift+1 warp,click 1 shift
shift+2 warp,click 2 shift
shift+3 warp,click 3 shift
shift+4 warp,click 4 shift # Mousewheel up
shift+r warp,click 5 shift # Mousewheel down
shift+5 warp,click 6 shift # Mousewheel left
shift+6 warp,click 7 shift # Mousewheel right
q drag 1
w drag 2
e drag 3
ctrl+q drag 1 ctrl
ctrl+w drag 2 ctrl
ctrl+e drag 3 ctrl
shift+q drag 1 shift
shift+w drag 2 shift
shift+e drag 3 shift
ctrl+shift+q drag 1 ctrl+shift
ctrl+shift+w drag 2 ctrl+shift
ctrl+shift+e drag 3 ctrl+shift
# Zoom to the current window
#w windowzoom
# Zoom to the cursor location with a given height and width
c cursorzoom 100 100
# Handy for holding ctrl while using keynav:
ctrl+h cut-left
ctrl+j cut-down
ctrl+k cut-up
ctrl+l cut-right
ctrl+y cut-left,cut-up
ctrl+u cut-right,cut-up
ctrl+b cut-left,cut-down
ctrl+n cut-right,cut-down
# Record keynav actions
#q record
### Example using the 'sh' command.
# Make firefox the active window
#f sh "xdotool windowactivate $(xdotool search -title -- '- Mozilla Firefox')", end
# Make a new tab in google chrome:
#t sh "xdotool windowactivate $(xdotool search --title -- '- Google Chrome' | head -1); xdotool key ctrl+t",end
# Paste
#v sh "xdotool key shift+Insert"
### Drag examples
# Start drag holding the left mouse button
# q drag 1
# Start drag holding middle mouse + control and shift
#w drag 2 ctrl+shift
### History
a 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