Skip to content

Instantly share code, notes, and snippets.

@haxcited
Created August 15, 2020 18:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save haxcited/37a313e78eb436f3ce0ab23d8c46ecde to your computer and use it in GitHub Desktop.
Save haxcited/37a313e78eb436f3ce0ab23d8c46ecde to your computer and use it in GitHub Desktop.
clear
#daemonize
#ctrl+shift+semicolon start , grid 3x3 #,grid-nav on
ctrl+alt+f start , grid 3x3 #,grid-nav on
#e grid-nav toggle
ctrl+r restart
Escape end
ctrl+bracketleft end
shift+s move-left
shift+c move-down
shift+e move-up
shift+g move-right
shift+w move-left,move-up
shift+t move-right,move-up
shift+x move-left,move-down
shift+b move-right,move-down
space warp ,click 1,end
semicolon warp
1 click 1 , end
2 click 2
3 click 3 , end
# Zoom to the current window
g windowzoom
# Zoom to the cursor location with a given height and width
m cursorzoom 200 200
# 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
#ctrl+y sh "xdotool key shift+Insert"
#ctrl+n sh "xdotool key Down"
#ctrl+p sh "xdotool key Up"
### Drag examples
# Start drag holding the left mouse button
h drag 1
# Start drag holding middle mouse + control and shift
#w drag 2 ctrl+shift
### History
b 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
#6 grid 2x3
w cell-select 1x1
e cell-select 2x1
t cell-select 3x1
#r cell-select 4x1
s cell-select 1x2
d cell-select 2x2
g cell-select 3x2 # PageDown
#f cell-select 4x2
x cell-select 1x3
c cell-select 2x3
b cell-select 3x3
#v cell-select 4x3
### 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment