dot_keynavrc 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  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. # Use 'clear' to blow away any previous keybindings
  21. clear
  22. # Use 'daemonize' to background ourselves.
  23. #daemonize
  24. # ctrl+semicolon start
  25. shift+KP_5 start
  26. Escape end
  27. # KP_0 end
  28. ctrl+bracketleft end
  29. # Emacs keybindings
  30. #
  31. # b cut-left
  32. # n cut-down
  33. # p cut-up
  34. # f 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. KP_Left cut-left
  40. KP_Down cut-down
  41. KP_Up cut-up
  42. KP_Right cut-right
  43. KP_Home cut-left,cut-up
  44. KP_Page_Up cut-right,cut-up
  45. KP_End cut-left,cut-down
  46. KP_Page_Down cut-right,cut-down
  47. shift+KP_Left move-left
  48. shift+KP_Down move-down
  49. shift+KP_Up move-up
  50. shift+KP_Right move-right
  51. shift+KP_Home move-left,move-up
  52. shift+KP_Page_Up move-right,move-up
  53. shift+KP_End move-left,move-down
  54. shift+KP_Page_Down move-right,move-down
  55. # KP_5 warp,click 1,end
  56. KP_5 warp,click 1,end
  57. KP_Subtract warp,click 3,end
  58. KP_Multiply warp,click 2,end
  59. KP_Divide warp,end
  60. # Zoom to the current window
  61. KP_Add windowzoom
  62. # Zoom to the cursor location with a given height and width
  63. KP_0 cursorzoom 200 200
  64. # Handy for holding ctrl while using keynav:
  65. # ctrl+h cut-left
  66. # ctrl+j cut-down
  67. # ctrl+k cut-up
  68. # ctrl+l cut-right
  69. # ctrl+y cut-left,cut-up
  70. # ctrl+u cut-right,cut-up
  71. # ctrl+b cut-left,cut-down
  72. # ctrl+n cut-right,cut-down
  73. # Record keynav actions
  74. q record
  75. ### Example using the 'sh' command.
  76. # Make firefox the active window
  77. # f sh "xdotool windowactivate $(xdotool search -title -- '- Mozilla Firefox')", end
  78. # Make a new tab in google chrome:
  79. # t sh "xdotool windowactivate $(xdotool search --title -- '- Google Chrome' | head -1); xdotool key ctrl+t",end
  80. # Paste
  81. # v sh "xdotool key shift+Insert"
  82. ### Drag examples
  83. # Start drag holding the left mouse button
  84. #q drag 1
  85. # Start drag holding middle mouse + control and shift
  86. #w drag 2 ctrl+shift
  87. ### History
  88. KP_Delete history-back
  89. ### Example of cut and move without the default values
  90. #h cut-left .75
  91. #j cut-down .75
  92. #k cut-up .75
  93. #l cut-right .75
  94. #shift+h move-left .50
  95. #shift+j move-down .50
  96. #shift+k move-up .50
  97. #shift+l move-right .50
  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. ### Example using a 3x3 grid with nethack-vi keys
  108. #ctrl+semicolon start, grid 3x3
  109. #h cell-select 2x1 # left
  110. #j cell-select 3x2 # down
  111. #k cell-select 1x2 # up
  112. #l cell-select 2x3 # right
  113. #y cell-select 1x1 # up-left
  114. #u cell-select 1x3 # up-right
  115. #b cell-select 3x1 # down-left
  116. #n cell-select 3x3 # down-right
  117. #period cell-select 2x2 # center