Skip to content

Instantly share code, notes, and snippets.

@Mardiniii
Created February 2, 2017 19:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Mardiniii/4a994e5fdd73f3fc1c1d8c06c312f3d6 to your computer and use it in GitHub Desktop.
Save Mardiniii/4a994e5fdd73f3fc1c1d8c06c312f3d6 to your computer and use it in GitHub Desktop.
Config file for Slate
# My basic ~/.slate file.
# It has some tweaks so it doesn't fuck with my IDE
config defaultToCurrentScreen true
config nudgePercentOf screenSize
config resizePercentOf screenSize
# Resize Bindings -> resize
bind right:alt;ctrl resize +5% +0
bind left:alt;ctrl resize -5% +0
bind up:alt;ctrl resize +0 -10%
bind down:alt;ctrl resize +0 +10%
# Push Bindings -> split horizontal/vertical
bind right:alt push right bar-resize:screenSizeX/2
bind left:alt push left bar-resize:screenSizeX/2
bind up:alt push up bar-resize:screenSizeY/2
bind down:alt push down bar-resize:screenSizeY/2
# Nudge Bindings -> Move window
bind right:shift;alt;ctrl nudge +10% +0
bind left:shift;alt;ctrl nudge -10% +0
bind up:shift;alt;ctrl nudge +0 -10%
bind down:shift;alt;ctrl nudge +0 +10%
# Throw Bindings -> restore original size
bind 1:cmd;alt;shift throw 0 resize
bind 2:cmd;alt;shift throw 1 resize
bind 3:cmd;alt;shift throw 2 resize
bind down:alt;cmd throw down resize
# Focus Bindings
bind up:cmd;shift focus behind
bind down:cmd;shift focus behind
# Window Hints
bind esc:cmd hint
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment