Slate config.
This commit is contained in:
parent
b2a15d142b
commit
8390301c8b
7
sync.py
7
sync.py
@ -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
18
tilde/slate.js
Normal 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
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user