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