Skip to content

Instantly share code, notes, and snippets.

@veered
Created August 30, 2013 07:59
Show Gist options
  • Save veered/6387364 to your computer and use it in GitHub Desktop.
Save veered/6387364 to your computer and use it in GitHub Desktop.
config defaultToCurrentScreen true
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
config windowHintsSpread true
config windowHintsSpreadPadding 40
config windowHintsSpreadSearchWidth 80
config windowHintsSpreadSearchHeight 80
config windowHintsOrder leftToRight
config switchIconPadding 2
config switchBackgroundColor 50;53;58;0.7
config switchSelectedPadding 4
config switchIconSize 96
config switchShowTitles true
config switchFontSize 11
config switchRoundedCornerSize 4
config undoOps move,resize
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# 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 tophalf push up bar-resize:screenSizeY/2
alias bottomhalf push down bar-resize:screenSizeY/2
alias topleft corner top-left resize:screenSizeX/2;screenSizeY/2
alias topright corner top-right resize:screenSizeX/2;screenSizeY/2
alias bottomleft corner bottom-left resize:screenSizeX/2;screenSizeY/2
alias bottomright corner bottom-right resize:screenSizeX/2;screenSizeY/2
# Resize Bindings
# bind right:alt resize +10% +0
# bind left:alt resize -10% +0
# bind up:alt resize +0 -10%
# bind down:alt resize +0 +10%
# bind down:ctrl;alt resize +0 -10% bottom-right
# Push Bindings
bind right:ctrl;cmd ${righthalf}
bind left:ctrl;cmd ${lefthalf}
bind up:ctrl;cmd ${tophalf}
bind down:ctrl;cmd ${bottomhalf}
bind up:ctrl;alt ${topright}
bind left:ctrl;alt ${topleft}
bind right:ctrl;alt ${bottomright}
bind down:ctrl;alt ${bottomleft}
bind up:ctrl;alt;cmd ${full}
# Nudge Bindings
# bind right:shift;alt nudge +10% +0
# bind left:shift;alt nudge -10% +0
# bind up:shift;alt nudge +0 -10%
# bind down:shift;alt nudge +0 +10%
# Throw Bindings
# bind 1:ctrl;alt throw 0 resize
# bind 2:ctrl;alt throw 1 resize
# bind 3:ctrl;alt throw 2 resize
# bind right:ctrl;alt;cmd throw right resize
# bind left:ctrl;alt;cmd throw left resize
# bind up:ctrl;alt;cmd throw up resize
# Focus Bindings
bind right:cmd focus right
bind left:cmd focus left
bind up:cmd focus up
bind down:cmd focus down
bind up:cmd;alt focus behind
bind down:cmd;alt focus behind
# Window Hints
# bind j:cmd hint ASDFGHJKLQWERTYUIOPCVBN # use whatever keys you want
bind j:cmd hint FJDKSLHGWOEIRU # use whatever keys you want
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment