Created
February 22, 2019 00:48
-
-
Save elwayman02/a7131637c595a9d33f96152ee62a7267 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
// Based on https://github.com/jigish/dotfiles/blob/master/slate.js | |
// Configs | |
S.cfga({ | |
"defaultToCurrentScreen" : true, | |
"secondsBetweenRepeat" : 0.1, | |
"checkDefaultsOnLoad" : true, | |
"focusCheckWidthMax" : 3000, | |
"orderScreensLeftToRight" : true | |
}); | |
// Monitors | |
var extMonitor = "2560x1440"; | |
var monLaptop = "1920x1200"; | |
// Snapshot Names | |
var twoMonName = 'twoMonitors'; | |
var oneMonName = 'oneMonitor'; | |
// Operations | |
// Two Monitors | |
var updateTwoMon = S.op('snapshot', { | |
name: twoMonName, | |
save: true, | |
stack: true | |
}); | |
var activateTwoMon = S.op('activate-snapshot', { | |
name: twoMonName | |
}); | |
var popTwoMon = S.op('delete-snapshot', { | |
name: twoMonName | |
}); | |
// One Monitor | |
var updateOneMon = S.op('snapshot', { | |
name: oneMonName, | |
save: true, | |
stack: true | |
}); | |
var activateOneMon = S.op('activate-snapshot', { | |
name: oneMonName | |
}); | |
var popOneMon = S.op('delete-snapshot', { | |
name: oneMonName | |
}); | |
// Batch bind everything. Less typing. | |
S.bnda({ | |
'2:ctrl;shift': activateTwoMon, | |
't:ctrl;shift': updateTwoMon, | |
'delete:ctrl;shift': popTwoMon, | |
'1:ctrl;shift': activateOneMon, | |
'o:ctrl;shift': updateOneMon, | |
'backslash:ctrl;shift': popOneMon, | |
}); | |
// Log that we're done configuring | |
S.log("[SLATE] -------------- Finished Loading Config --------------"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment