Slate config.

This commit is contained in:
Artem Sapegin 2013-10-11 17:16:12 +04:00
parent b2a15d142b
commit 8390301c8b
2 changed files with 24 additions and 1 deletions

View File

@ -13,6 +13,9 @@ import shutil
SOURCE_DIR = '~/dotfiles/tilde' SOURCE_DIR = '~/dotfiles/tilde'
EXCLUDE = [] EXCLUDE = []
NO_DOT_PREFIX = [] NO_DOT_PREFIX = []
PRESERVE_EXTENSION = [
'slate.js'
]
def force_remove(path): def force_remove(path):
@ -34,7 +37,9 @@ def main():
dotfile = filename dotfile = filename
if filename not in NO_DOT_PREFIX: if filename not in NO_DOT_PREFIX:
dotfile = '.' + dotfile dotfile = '.' + dotfile
dotfile = os.path.join(os.path.expanduser('~'), os.path.splitext(dotfile)[0]) if filename not in PRESERVE_EXTENSION:
dotfile = os.path.splitext(dotfile)[0]
dotfile = os.path.join(os.path.expanduser('~'), dotfile)
source = os.path.join(SOURCE_DIR, filename).replace('~', '.') source = os.path.join(SOURCE_DIR, filename).replace('~', '.')
# Check that we aren't overwriting anything # Check that we aren't overwriting anything

18
tilde/slate.js Normal file
View File

@ -0,0 +1,18 @@
var fullscreen = S.op('move', {
x: 'screenOriginX',
y: 'screenOriginY',
width: 'screenSizeX',
height: 'screenSizeY'
});
var middle = S.op('move', {
x: 'screenOriginX+screenSizeX/4',
y: 'screenOriginY',
width: 'screenSizeX/2',
height: 'screenSizeY'
});
S.bnda({
'f:ctrl;alt': fullscreen,
'm:ctrl;alt': middle
});