# HG changeset patch # User zegervdv # Date 1416860677 -3600 # Node ID 2575264385c96ef43d59a4db9f57c3fe22553642 # Parent 489b51bdbc9bcc78ae5c7a58e7afaa4b01888b36 Add extra layout to slate diff -r 489b51bdbc9b -r 2575264385c9 slate.js --- a/slate.js Thu Nov 20 18:13:32 2014 +0100 +++ b/slate.js Mon Nov 24 21:24:37 2014 +0100 @@ -39,8 +39,32 @@ "height" : "1020", }); +var halfRight = S.operation("move", { + "screen" : monMain, + "x" : "screenSizeX/2", + "y" : "0", + "width" : "screenSizeX/2", + "height" : "screenSizeY" +}); + +var hideChat = S.operation("hide", { "app" : "Terminal" }); +var showChat = S.operation("show", { + "app" : ["Terminal"] +}); +var focusTerm = S.operation("focus", { "app" : "Terminal" }); + +var twoThirdsLeft = S.operation("move", { + "screen" : monMain, + "x" : "0", + "y" : "0", + "width" : "screenSizeX * 2 / 3", + "height" : "screenSizeY" +}); + // Layout -var HPsetupLayout = S.layout("HPsetupLayout", { +var HPSetupLayout = S.layout("HPSetupLayout", { + "_before_" : { "operations" : showChat, "repeat-last" : true }, + "_after_" : { "operations" : focusTerm }, "Terminal" : { "operations" : [bottomRight, topRight], "title-order-regex" : [".+⌘1$"], @@ -51,5 +75,18 @@ } }); -S.bind("space:ctrl", S.operation("layout", { "name" : HPsetupLayout })); -S.default([monHP,monMain], HPsetupLayout); +var SingleSetupLayout = S.layout("SingleSetupLayout", { + "Terminal" : { + "operations" : [halfRight, hideChat], + "title-order-regex" : [".+⌘1$"], + "repeat" : true + }, + "Safari" : { + "operations" : [twoThirdsLeft] + } +}); + +S.bind("space:ctrl", S.operation("layout", { "name" : HPSetupLayout })); +// S.bind("space:ctrl", S.operation("layout", { "name" : SingleSetupLayout })); +S.default([monHP,monMain], HPSetupLayout); +S.default([monMain], SingleSetupLayout); diff -r 489b51bdbc9b -r 2575264385c9 vimrc --- a/vimrc Thu Nov 20 18:13:32 2014 +0100 +++ b/vimrc Mon Nov 24 21:24:37 2014 +0100 @@ -233,8 +233,8 @@ nnoremap + -" Jump out of inner bracket -inoremap %%a +" Move while in insert mode +inoremap " Switch between the last two files nnoremap