Skip to content

Instantly share code, notes, and snippets.

@eduardo
Forked from mgax/.slate
Created July 16, 2013 06:54
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 eduardo/6006370 to your computer and use it in GitHub Desktop.
Save eduardo/6006370 to your computer and use it in GitHub Desktop.
config secondsBeforeRepeat 0.05
config secondsBetweenRepeat 0.05
config checkDefaultsOnLoad true
config focusCheckWidthMax 3000
slate.bind('l:cmd,ctrl,alt', function() { slate.resize(+10, +0 ); }, true);
slate.bind('h:cmd,ctrl,alt', function() { slate.resize(-10, +0 ); }, true);
slate.bind('k:cmd,ctrl,alt', function() { slate.resize(+0 , -10); }, true);
slate.bind('j:cmd,ctrl,alt', function() { slate.resize(+0 , +10); }, true);
slate.bind('l:cmd,ctrl,alt,shift', function() { slate.resize(+1, +0); }, true);
slate.bind('h:cmd,ctrl,alt,shift', function() { slate.resize(-1, +0); }, true);
slate.bind('k:cmd,ctrl,alt,shift', function() { slate.resize(+0, -1); }, true);
slate.bind('j:cmd,ctrl,alt,shift', function() { slate.resize(+0, +1); }, true);
slate.bind('l:cmd,ctrl', function() { slate.nudge(+10, +0); }, true);
slate.bind('h:cmd,ctrl', function() { slate.nudge(-10, +0); }, true);
slate.bind('k:cmd,ctrl', function() { slate.nudge(+0 ,-10); }, true);
slate.bind('j:cmd,ctrl', function() { slate.nudge(+0 ,+10); }, true);
slate.bind('l:cmd,ctrl,shift', function() { slate.nudge(+1, +0); }, true);
slate.bind('h:cmd,ctrl,shift', function() { slate.nudge(-1, +0); }, true);
slate.bind('k:cmd,ctrl,shift', function() { slate.nudge(+0, -1); }, true);
slate.bind('j:cmd,ctrl,shift', function() { slate.nudge(+0, +1); }, true);
slate.bind('l:cmd,shift', function() { slate.focus('right'); });
slate.bind('h:cmd,shift', function() { slate.focus('left'); });
slate.bind('k:cmd,shift', function() { slate.focus('up'); });
slate.bind('j:cmd,shift', function() { slate.focus('down'); });
slate.bind('r:cmd,ctrl,shift', function() {
slate.log("Relaunching...");
slate.relaunch();
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment