Skip to content

Instantly share code, notes, and snippets.

@nfarrar
Created December 25, 2014 01:38
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 nfarrar/849b619c7d464a84e5c0 to your computer and use it in GitHub Desktop.
Save nfarrar/849b619c7d464a84e5c0 to your computer and use it in GitHub Desktop.
slate config
# Author: Nathan Farrar
# Email: nathan.farrar@gmail.com
# Website: http://crunk.io/
# Updated: 2014-10-10 08:50:00
# This is the default .slate file.
# If no ~/.slate file exists this is the file that will be used.
# NOTES
# I use ctrl+alt+arrows to move around desktops, so those bindings overlap.
# I use ctrl+alt+shift to move windows around my desktops, so those bindings overlap.
# Some of the default bindings overlap with chrome &
# CONFIGURATION
config defaultToCurrentScreen true # Default to the current screen if the screen the reference does not exist.
config nudgePercentOf screenSize # The base value for nudge percent calculation.
config resizePercentOf screenSize # The base value for resize percent calculation.
# Aliases
alias hyper ctrl;alt;cmd
alias syper shift;ctrl;alt;cmd
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 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
# Bindings
bind esc:cmd hint # display window hints
bind l:${hyper} focus right
bind h:${hyper} focus left
bind k:${hyper} focus up
bind j:${hyper} focus down
bind r:${hyper} ${topleft}
bind t:${hyper} ${topright}
bind d:${hyper} ${lefthalf}
bind g:${hyper} ${righthalf}
bind f:${hyper} ${full}
bind c:${hyper} ${bottomleft}
bind v:${hyper} ${bottomright}
# 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%
# bind right:ctrl;alt resize -10% +0 bottom-right
# bind left:ctrl;alt resize +10% +0 bottom-right
# bind up:ctrl;alt resize +0 +10% bottom-right
# bind down:ctrl;alt resize +0 -10% bottom-right
# 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;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
# 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
# bind down:ctrl;alt;cmd throw down resize
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment