| 1 |
# This is a keynavrc file. Yours should live in |
| 2 |
# $HOME/.keynavrc |
| 3 |
# |
| 4 |
# Lines beginning with '#' are comments. |
| 5 |
# Format is: |
| 6 |
# keysequence cmd1,cmd2,cmd3... |
| 7 |
# |
| 8 |
# Other special values are: |
| 9 |
# 'clear' on a line by itself (no quotes) will erase all keybindings |
| 10 |
# (including the defaults) |
| 11 |
# 'daemonize' on a line by itself (no quotes) will make keynav background |
| 12 |
# after parsing the configfile and having no critical errors. |
| 13 |
# |
| 14 |
# The 'start' command alone is handled specially, in that any key sequence |
| 15 |
# mapped to 'start' will be grabbed when keynav starts up so you can invoke it |
| 16 |
# to activate keynav. The remaining keys are only recognized while keynav is |
| 17 |
# active |
| 18 |
# |
| 19 |
# Project page; http://www.semicomplete.com/projects/keynav |
| 20 |
|
| 21 |
# Use 'clear' to blow away any previous keybindings |
| 22 |
#clear |
| 23 |
|
| 24 |
# Use 'daemonize' to background ourselves. |
| 25 |
#daemonize |
| 26 |
|
| 27 |
ctrl+semicolon start |
| 28 |
Escape end |
| 29 |
ctrl+bracketleft end |
| 30 |
h cut-left |
| 31 |
j cut-down |
| 32 |
k cut-up |
| 33 |
l cut-right |
| 34 |
y cut-left,cut-up |
| 35 |
u cut-right,cut-up |
| 36 |
b cut-left,cut-down |
| 37 |
n cut-right,cut-down |
| 38 |
shift+h move-left |
| 39 |
shift+j move-down |
| 40 |
shift+k move-up |
| 41 |
shift+l move-right |
| 42 |
shift+y move-left,move-up |
| 43 |
shift+u move-right,move-up |
| 44 |
shift+b move-left,move-down |
| 45 |
shift+n move-right,move-down |
| 46 |
space warp,click 1,end |
| 47 |
semicolon warp,end |
| 48 |
1 click 1 |
| 49 |
2 click 2 |
| 50 |
3 click 3 |
| 51 |
|
| 52 |
# Zoom to the current window |
| 53 |
w windowzoom |
| 54 |
|
| 55 |
# Zoom to the cursor location with a given height and width |
| 56 |
c cursorzoom 200 200 |
| 57 |
|
| 58 |
# Handy for holding ctrl while using keynav: |
| 59 |
ctrl+h cut-left |
| 60 |
ctrl+j cut-down |
| 61 |
ctrl+k cut-up |
| 62 |
ctrl+l cut-right |
| 63 |
ctrl+y cut-left,cut-up |
| 64 |
ctrl+u cut-right,cut-up |
| 65 |
ctrl+b cut-left,cut-down |
| 66 |
ctrl+n cut-right,cut-down |
| 67 |
|
| 68 |
# Record keynav actions |
| 69 |
q record |
| 70 |
|
| 71 |
### Example using the 'sh' command. |
| 72 |
# Make firefox the active window |
| 73 |
f sh "xdotool windowactivate $(xdotool search -title -- '- Mozilla Firefox')", end |
| 74 |
# Make a new tab in google chrome: |
| 75 |
t sh "xdotool windowactivate $(xdotool search --title -- '- Google Chrome' | head -1); xdotool key ctrl+t",end |
| 76 |
# Paste |
| 77 |
v sh "xdotool key shift+Insert" |
| 78 |
|
| 79 |
### Drag examples |
| 80 |
# Start drag holding the left mouse button |
| 81 |
#q drag 1 |
| 82 |
# Start drag holding middle mouse + control and shift |
| 83 |
#w drag 2 ctrl+shift |
| 84 |
|
| 85 |
### History |
| 86 |
a history-back |
| 87 |
|
| 88 |
### Example of cut and move without the default values |
| 89 |
#h cut-left .75 |
| 90 |
#j cut-down .75 |
| 91 |
#k cut-up .75 |
| 92 |
#l cut-right .75 |
| 93 |
#shift+h move-left .50 |
| 94 |
#shift+j move-down .50 |
| 95 |
#shift+k move-up .50 |
| 96 |
#shift+l move-right .50 |
| 97 |
|
| 98 |
### Example using a 2-row, 3-column grid, |
| 99 |
# mapped to Insert/Home/PageUp/etc... |
| 100 |
#6 grid 2x3 |
| 101 |
#Insert cell-select 1x1 |
| 102 |
#Home cell-select 1x2 |
| 103 |
#Prior cell-select 1x3 # PageUp |
| 104 |
#Delete cell-select 2x1 |
| 105 |
#End cell-select 2x2 |
| 106 |
#Next cell-select 2x3 # PageDown |
| 107 |
|
| 108 |
### Example using a 3x3 grid with nethack-vi keys |
| 109 |
#ctrl+semicolon start, grid 3x3 |
| 110 |
#h cell-select 2x1 # left |
| 111 |
#j cell-select 3x2 # down |
| 112 |
#k cell-select 1x2 # up |
| 113 |
#l cell-select 2x3 # right |
| 114 |
#y cell-select 1x1 # up-left |
| 115 |
#u cell-select 1x3 # up-right |
| 116 |
#b cell-select 3x1 # down-left |
| 117 |
#n cell-select 3x3 # down-right |
| 118 |
#period cell-select 2x2 # center |