Skip to content

Instantly share code, notes, and snippets.

@jake-minted
Created September 12, 2014 19:17
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 jake-minted/273cd5e0cf1ea1ff9555 to your computer and use it in GitHub Desktop.
Save jake-minted/273cd5e0cf1ea1ff9555 to your computer and use it in GitHub Desktop.
My Slate.js Configuration
# Configuration is split into the following directives:
# config (for global configurations)
config defaultToCurrentScreen true
config resizePercentOf screenSize
config nudgePercentOf screenSize
config secondsBetweenRepeat 0.1
config checkDefaultsOnLoad true
config focusCheckWidthMax 3000
config windowHintsShowIcons true
config windowHintsBackgroundColor 96;96;64;0.5
config windowHintsIgnoreHiddenWindows true
#config windowHintsOrder persist
config windowHintsSpread true
config windowHintsSpreadPadding 40
config windowHintsSpreadSearchWidth 80
config windowHintsSpreadSearchHeight 80
config switchIconPadding 2
config switchBackgroundColor 50;53;58;0.7
config switchSelectedPadding 1
config switchIconSize 96
config switchShowTitles true
config switchFontSize 11
config switchRoundedCornerSize 4
# alias (to create alias variables)
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 bottomhalf corner bottom-left resize:screenSizeX;screenSizeY/2
alias tophalf corner top-left resize:screenSizeX;screenSizeY/2
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
alias hyper shift;cmd
alias focus alt;shift
# key bindings
# focus Bindings
bind l:${focus} focus right
bind h:${focus} focus left
bind k:${focus} focus up
bind j:${focus} focus down
# Movement Bindings
bind h:${hyper} ${lefthalf}
bind j:${hyper} ${bottomhalf}
bind k:${hyper} ${tophalf}
bind l:${hyper} ${righthalf}
bind y:${hyper} ${topleft}
bind u:${hyper} ${topright}
bind n:${hyper} ${bottomleft}
bind m:${hyper} ${bottomright}
bind f:${hyper} ${full}
@jake-minted
Copy link
Author

Install Slate from dmg here
Source here
Aliases hyper to [Shift] + ⌘,
and focus to [Shift] + ⌥.
From there you have standard vim-keybindings h,j,k, and l.
hyper moves windows and focus focus's window in appropriate direction of vim-keybind.
Also has y,u and n,m for upper and lower corners respectively.
As well as hyper + [f] for full window.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment