Last active
March 28, 2018 03:35
-
-
Save dongyuwei/8034059 to your computer and use it in GitHub Desktop.
my slate config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var leftOneOfThree = slate.operation("push", { | |
"direction" : "left", | |
"style" : "bar-resize:screenSizeX/3" | |
}); | |
var rightTwoOfThree = slate.operation("push", { | |
"direction" : "right", | |
"style" : "bar-resize:screenSizeX*2/3" | |
}); | |
var pushTop = slate.operation("push", { | |
"direction" : "top", | |
"style" : "bar-resize:screenSizeY/2" | |
}); | |
var pushBottom = slate.operation("push", { | |
"direction" : "bottom", | |
"style" : "bar-resize:screenSizeY/2" | |
}); | |
var fullscreen = slate.operation("move", { | |
"x" : "screenOriginX", | |
"y" : "screenOriginY", | |
"width" : "screenSizeX", | |
"height" : "screenSizeY" | |
}); | |
var middleRight = slate.operation("push", { | |
"direction" : "right", | |
"style" : "bar-resize:screenSizeX/2" | |
}); | |
var middleLeft = slate.operation("push", { | |
"direction" : "left", | |
"style" : "bar-resize:screenSizeX/2" | |
}); | |
slate.bindAll({ | |
"1:alt,cmd,ctrl" : function(win){ | |
win.doOperation(middleLeft); | |
}, | |
"2:alt,cmd,ctrl" : function(win){ | |
win.doOperation(middleRight); | |
}, | |
"3:alt,cmd,ctrl" : function(win){ | |
win.doOperation(leftOneOfThree); | |
}, | |
"4:alt,cmd,ctrl" : function(win){ | |
win.doOperation(rightTwoOfThree); | |
}, | |
"5:alt,cmd,ctrl":function(win){ | |
win.doOperation(pushTop); | |
}, | |
"6:alt,cmd,ctrl":function(win){ | |
win.doOperation(pushBottom); | |
}, | |
"9:alt,cmd,ctrl" : function(win){ | |
win.doOperation(fullscreen); | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
current used: