Skip to content

Instantly share code, notes, and snippets.

@robcowie
Last active December 16, 2015 01:19
Show Gist options
  • Select an option

  • Save robcowie/5354260 to your computer and use it in GitHub Desktop.

Select an option

Save robcowie/5354260 to your computer and use it in GitHub Desktop.
S.bind('l:ctrl', S.operation('corner', {
'direction': 'top-left',
'width': 'screenSizeX*0.75',
'height': 'screenSizeY'
}));
S.bind('r:ctrl', S.operation('corner', {
'direction': 'top-right',
'width': 'screenSizeX*0.25',
'height': 'screenSizeY'
}));
var throwToOtherScreen = S.operation('throw', {
'screen': function() {
var ct = slate.screenCount();
var sid = slate.window().screen().id();
return ((sid + 1) % ct).toString();
}
});
S.bind('1:ctrl,alt', throwToOtherScreen);
@rxw1
Copy link
Copy Markdown

rxw1 commented Dec 6, 2013

thanks!

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