Skip to content

Instantly share code, notes, and snippets.

@albertzak
Created November 10, 2013 12:54
Show Gist options
  • Save albertzak/7397893 to your computer and use it in GitHub Desktop.
Save albertzak/7397893 to your computer and use it in GitHub Desktop.
S.cfga({
"defaultToCurrentScreen" : true,
"secondsBetweenRepeat" : 0.1,
"checkDefaultsOnLoad" : true,
"focusCheckWidthMax" : 3000,
"orderScreensLeftToRight" : true
});
S.bnda({
// Half
"right:alt;cmd" : S.op("push", {
"direction": "right",
"style": "bar-resize:screenSizeX/2"
}),
"left:alt;cmd" : S.op("push", {
"direction": "left",
"style": "bar-resize:screenSizeX/2"
}),
"up:alt;cmd" : S.op("push", {
"direction": "up",
"style": "bar-resize:screenSizeY/2"
}),
"down:alt;cmd" : S.op("push", {
"direction": "down",
"style": "bar-resize:screenSizeY/2"
}),
// Quarter
// Bottom Left
"left:ctrl;alt;shift" : S.op("move", {
"x": "0",
"y": "screenSizeY/2",
"width": "screenSizeX/2",
"height": "screenSizeY/2"
}),
// Top Left
"up:ctrl;alt;shift" : S.op("move", {
"x": "0",
"y": "0",
"width": "screenSizeX/2",
"height": "screenSizeY/2"
}),
// Bottom Right
"down:ctrl;alt;shift" : S.op("move", {
"x": "screenSizeX/2",
"y": "screenSizeY/2",
"width": "screenSizeX/2",
"height": "screenSizeY/2"
}),
// Top Right
"right:ctrl;alt;shift" : S.op("move", {
"x": "screenSizeX/2",
"y": "0",
"width": "screenSizeX/2",
"height": "screenSizeY/2"
}),
// Nudge
"right:ctrl;alt" : S.op("nudge", {
"x": "+10%",
"y": "+0"
}),
"left:ctrl;alt" : S.op("nudge", {
"x": "-10%",
"y": "+0"
}),
"up:ctrl;alt" : S.op("nudge", {
"x": "+0",
"y": "-10%"
}),
"down:ctrl;alt" : S.op("nudge", {
"x": "+0",
"y": "+10%"
}),
// Maximize
"m:ctrl;alt;cmd" : S.op("move", {
"x": "0",
"y": "0",
"width": "screenSizeX",
"height": "screenSizeY"
}),
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment