Skip to content
Switch branches/tags
Go to file
Cannot retrieve contributors at this time
# Configs
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
config checkDefaultsOnLoad true
config focusCheckWidthMax 3000
# Monitor aliases
alias mon-laptop 1280x800
alias mon-ultrafine 2560x1440
# Size and Position aliases
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
alias center move screenOriginX+screenSizeX/6;screenOriginY screenSizeX*2/3;screenSizeY
alias leftHalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY
alias rightHalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY
alias topHalf move screenOriginX;screenOriginY+screenSizeY/2 screenSizeX;screenSizeY/2
alias bottomHalf move screenOriginX;screenOriginY screenSizeX;screenSizeY/2
# Key aliases
alias ca ctrl;alt
alias cas ctrl;alt;shift
alias cam ctrl;alt;cmd
alias cams ctrl;alt;cmd;shift
alias ams alt;cmd;shift
# Default layouts
default laptop-ultrafine resolutions:${mon-laptop};${mon-ultrafine}
# 2 monitor layout ultrafine
layout laptop-ultrafine 'iTerm' ${full} ${mon-ultrafine}
layout laptop-ultrafine 'Safari' throw ${mon-ultrafine}
layout laptop-ultrafine 'Tweetbot' corner top-right none ${mon-laptop}
layout laptop-ultrafine 'Slack' ${full} ${mon-laptop}
layout laptop-ultrafine 'Mail' ${full} ${mon-laptop}
layout laptop-ultrafine 'Spotify' ${full} ${mon-laptop}
layout laptop-ultrafine 'Skype' ${leftHalf} ${mon-laptop}
# Bindings
bind r:${cam} relaunch
bind u:${cam} undo
bind g:${cam} grid ${mon-laptop}:2,2 ${mon-ultrafine}:6,6
bind n:${cam} throw next
bind m:${cam} ${full}
bind =:${cam} ${center}
bind h:${cam} ${leftHalf}
bind l:${cam} ${rightHalf}
bind j:${cam} ${topHalf}
bind k:${cam} ${bottomHalf}
bind h:${cams} push left
bind l:${cams} push right
bind j:${cams} push down
bind k:${cams} push up
bind h:${ca} nudge -10% +0
bind l:${ca} nudge +10% +0
bind j:${ca} nudge +0 +10%
bind k:${ca} nudge +0 -10%
bind h:${cas} resize -10% +0
bind l:${cas} resize +10% +0
bind j:${cas} resize +0 +10%
bind k:${cas} resize +0 -10%
bind h:${ams} focus left
bind l:${ams} focus right
bind j:${ams} focus down
bind k:${ams} focus up
bind p:${ams} focus behind