dotfiles

A steaming hot pile of sh...ell scripts and configuration files.
git clone https://kaka.farm/~git/dotfiles
Log | Files | Refs

keynavrc (3111B)


      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 meta+semicolon start
     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 q click 1
     50 w click 2
     51 e click 3
     52 a drag 1
     53 s drag 2
     54 d drag 3
     55 1 warp,click 1,end
     56 2 warp,click 2,end
     57 3 warp,click 3,end
     58 
     59 # Zoom to the current window
     60 ###w windowzoom
     61 
     62 # Zoom to the cursor location with a given height and width
     63 c cursorzoom 200 200
     64 
     65 # Handy for holding ctrl while using keynav:
     66 ctrl+h cut-left
     67 ctrl+j cut-down
     68 ctrl+k cut-up
     69 ctrl+l cut-right
     70 ctrl+y cut-left,cut-up
     71 ctrl+u cut-right,cut-up
     72 ctrl+b cut-left,cut-down
     73 ctrl+n cut-right,cut-down
     74 
     75 # Record keynav actions
     76 ###q record
     77 
     78 ### Example using the 'sh' command.
     79 # Make firefox the active window
     80 f sh "xdotool windowactivate $(xdotool search -title -- '- Mozilla Firefox')", end
     81 # Make a new tab in google chrome:
     82 t sh "xdotool windowactivate $(xdotool search --title -- '- Google Chrome' | head -1); xdotool key ctrl+t",end
     83 # Paste
     84 v sh "xdotool key shift+Insert"
     85 
     86 ### Drag examples
     87 # Start drag holding the left mouse button
     88 #q drag 1
     89 # Start drag holding middle mouse + control and shift
     90 #w drag 2 ctrl+shift
     91 
     92 ### History
     93 z history-back
     94 
     95 ### Example of cut and move without the default values
     96 #h cut-left .75
     97 #j cut-down .75
     98 #k cut-up .75
     99 #l cut-right .75
    100 #shift+h move-left .50
    101 #shift+j move-down .50
    102 #shift+k move-up .50
    103 #shift+l move-right .50
    104 
    105 ### Example using a 2-row, 3-column grid, 
    106 # mapped to Insert/Home/PageUp/etc...
    107 #6 grid 2x3
    108 #Insert cell-select 1x1
    109 #Home cell-select 1x2
    110 #Prior cell-select 1x3   # PageUp
    111 #Delete cell-select 2x1
    112 #End cell-select 2x2
    113 #Next cell-select 2x3   # PageDown
    114 
    115 ### Example using a 3x3 grid with nethack-vi keys
    116 #ctrl+semicolon start, grid 3x3
    117 #h cell-select 2x1      # left
    118 #j cell-select 3x2      # down
    119 #k cell-select 1x2      # up
    120 #l cell-select 2x3      # right
    121 #y cell-select 1x1      # up-left
    122 #u cell-select 1x3      # up-right
    123 #b cell-select 3x1      # down-left
    124 #n cell-select 3x3      # down-right
    125 #period cell-select 2x2 # center