aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatt Singleton <matt@datadoghq.com>2013-03-18 02:11:08 -0400
committerMatt Singleton <matt@datadoghq.com>2013-03-18 02:11:08 -0400
commit37332280e6d5ba7f913b574c64d8bb699c225d83 (patch)
tree1ed981b1ffb45c63f624da05fdaf29a42766e325
parent6688afe37fedd872590f814c0f5daaeaf5e2fa56 (diff)
manage slate config
-rwxr-xr-xdeploy.sh2
-rw-r--r--slate25
2 files changed, 26 insertions, 1 deletions
diff --git a/deploy.sh b/deploy.sh
index f26d69e..b66b0d6 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -6,7 +6,7 @@ rm -rf dotfiles-backup
mkdir -p dotfiles-backup
# deploy
-for f in vimrc gvimrc gitconfig gitignore zshrc zsh vim dircolors.conf
+for f in vimrc gvimrc gitconfig gitignore zshrc zsh vim dircolors.conf slate
do
if [ -e ~/.${f} ]; then
mv ~/.${f} dotfiles-backup/${f}
diff --git a/slate b/slate
new file mode 100644
index 0000000..356684f
--- /dev/null
+++ b/slate
@@ -0,0 +1,25 @@
+config defaultToCurrentScreen true
+config nudgePercentOf screenSize
+config resizePercentOf screenSize
+
+bind r:alt relaunch
+
+# corners
+bind pad1:alt corner bottom-left resize:screenSizeX/2;screenSizeY/2
+bind pad7:alt corner top-left resize:screenSizeX/2;screenSizeY/2
+bind pad9:alt corner top-right resize:screenSizeX/2;screenSizeY/2
+bind pad3:alt corner bottom-right resize:screenSizeX/2;screenSizeY/2
+
+# sides
+bind pad4:alt push left bar-resize:screenSizeX/2
+bind left:alt push left bar-resize:screenSizeX/2
+bind pad6:alt push right bar-resize:screenSizeX/2
+bind right:alt push right bar-resize:screenSizeX/2
+
+# fullscreen
+bind pad5:alt move 0;0 screenSizeX;screenSizeY
+bind 0:alt move 0;0 screenSizeX;screenSizeY
+
+# center
+bind pad2:alt move (screenSizeX/2)-((screenSizeX*2)/6);0 (screenSizeX*2)/3;screenSizeY
+bind down:alt move (screenSizeX/2)-((screenSizeX*2)/6);0 (screenSizeX*2)/3;screenSizeY