Skip to content

Instantly share code, notes, and snippets.

@rdev5
Last active August 29, 2015 13:55
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 rdev5/8691068 to your computer and use it in GitHub Desktop.
Save rdev5/8691068 to your computer and use it in GitHub Desktop.
Supports full screen, left half, right half, and quarter sections for dual monitors (left half of left screen, right half of left screen, left half of right screen, right half of right screen).
# Configs
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
config secondsBetweenRepeat 0.1
config checkDefaultsOnLoad true
config focusCheckWidthMax 3000
config keyboardLayout dvorak
config windowHintsShowIcons true
config windowHintsIgnoreHiddenWindows false
#config windowHintsDuration 5
config windowHintsSpread true
#config windowHintsOrder persist
# Abstract positions
alias screen1/4 screenSizeX/4
alias screen1/2 screenSizeX/2
# Full screen
alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
# Full screen / 2
alias full1/2 move screenOriginX;screenOriginY ${screen1/2};screenSizeY
alias full2/2 move screenOriginX+screenSizeX/2;screenOriginY ${screen1/2};screenSizeY
# Full screen / 4
alias full1/4 move screenOriginX;screenOriginY ${screen1/4};screenSizeY
alias full2/4 move screenOriginX+${screen1/4};screenOriginY ${screen1/4};screenSizeY
alias full3/4 move screenOriginX+${screen1/4}*2;screenOriginY ${screen1/4};screenSizeY
alias full4/4 move screenOriginX+${screen1/4}*3;screenOriginY ${screen1/4};screenSizeY
# ======================================
# The HYPER key
# ======================================
alias hyper ctrl;shift;cmd
# HHKB Pro 2
bind up:${hyper} ${full}
bind left:${hyper} ${full1/2}
bind right:${hyper} ${full2/2}
bind f12:${hyper} show 'all'
bind down:${hyper} hide 'current'
bind f1 ${full1/4}
bind f2 ${full2/4}
bind f3 ${full3/4}
bind f4 ${full4/4}
# Throw window onto other screen
bind space:${hyper} throw next
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment