Skip to content

Instantly share code, notes, and snippets.

@rf-
Created January 13, 2013 21:39
Show Gist options
  • Save rf-/4526336 to your computer and use it in GitHub Desktop.
Save rf-/4526336 to your computer and use it in GitHub Desktop.
# Configs
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
config windowHintsShowIcons true
# Aliases
alias showHintsLeftHand hint 0123456789QAZWSXEDCRFVTGB
# Abstract positions
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY
alias righthalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY
alias rightmore move screenOriginX+screenSizeX*0.33;screenOriginY screenSizeX*0.66;screenSizeY
alias rightmost move screenOriginX+screenSizeX*0.25;screenOriginY screenSizeX*0.75;screenSizeY
alias bottomhalf push bottom bar-resize:screenSizeY/2
alias tophalf push top bar-resize:screenSizeY/2
alias lowerleft move screenOriginX;screenOriginY+screenSizeY/2 screenSizeX/2;screenSizeY/2
alias upperleft move screenOriginX;screenOriginY screenSizeX/2;screenSizeY/2
alias lowerright move screenOriginX+screenSizeX/2;screenOriginY+screenSizeY/2 screenSizeX/2;screenSizeY/2
# Location Bindings
bind pad0 ${showHintsLeftHand}
bind pad1 ${lowerleft}
bind pad2 ${bottomhalf}
bind pad3 ${lowerright}
bind pad4 ${lefthalf}
bind pad5 ${full}
bind pad6 ${righthalf}
bind pad7 ${upperleft}
bind pad8 ${tophalf}
bind pad9 ${rightmost}
bind pad+ throw next
# Focus Bindings
bind pad6:ctrl focus right
bind pad4:ctrl focus left
bind pad8:ctrl focus up
bind pad2:ctrl focus down
bind pad. focus behind
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment