Skip to content

Instantly share code, notes, and snippets.

@gr4y
Created October 27, 2013 15:29
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 gr4y/7183723 to your computer and use it in GitHub Desktop.
Save gr4y/7183723 to your computer and use it in GitHub Desktop.
my configuration file for the slate window manager
# Parts of this config is borrowed from
# https://gist.github.com/lmullen/4736568
# GLOBAL CONFIGURATIONS
# -------------------------------------------------------------------
# See https://github.com/jigish/slate/wiki/Global-Configs
config defaultToCurrentScreen true
config secondsBeforeRepeat 0.4
config secondsBetweenRepeat 0.1
config keyboardLayout "qwerty"
config nudgePercentOf screenSize
config resizePercentOf screenSize
# HYPER KEY
# -------------------------------------------------------------------
# The "hyper" key is a shortcut for CTRL + ALT + CMD
alias hyper ctrl;alt;cmd
# MONITOR ALIASES
# -------------------------------------------------------------------
alias monitor-macbook 1280x800
# APPLICATION ALIASES AND BINDINGS
# -------------------------------------------------------------------
alias editor 'Sublime Text 2'
alias browser 'Safari'
alias terminal 'Terminal'
alias itunes 'iTunes'
alias instacast 'Instacast'
alias readkit 'ReadKit'
bind e:alt;cmd focus ${editor}
bind b:alt;cmd focus ${browser}
bind t:alt;cmd focus ${terminal}
bind i:alt;cmd focus ${itunes}
bind c:alt;cmd focus ${instacast}
bind r:alt;cmd focus ${readkit}
# SLATE FEATURES
# -------------------------------------------------------------------
# Show quick key overlays for each window
config windowHintsShowIcons true
config windowHintsSpread true
config windowHintsIgnoreHiddenWindows false
bind esc:cmd hint ASDFHJKLQWERTYUIOPCVBNG
# Show a positioning grid for each monitor
# bind g:cmd grid padding:5 0:2,1 1:2,2
# Better application switcher
# bind tab:cmd switch
# Reload Slate configuration file
bind s:${hyper} relaunch
# BINDINGS
# -------------------------------------------------------------------
# Mostly taken from
# https://github.com/jigish/slate/blob/master/Slate/default.slate
# 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 right:ctrl;alt resize -10% +0 top-left
bind left:ctrl;alt resize +10% +0 top-left
bind up:ctrl;alt resize +0 +10% top-left
bind down:ctrl;alt resize +0 -10% top-left
# Push Bindings
bind right:ctrl;cmd push right bar-resize:screenSizeX/2
bind left:ctrl;cmd push left bar-resize:screenSizeX/2
bind up:ctrl;cmd push up bar-resize:screenSizeY/2
bind down:ctrl;cmd push down bar-resize:screenSizeY/2
bind c:ctrl;cmd push top center
# 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%
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment