Skip to content

Instantly share code, notes, and snippets.

@Velrok
Forked from trishume/.slate
Last active December 14, 2015 22:59
Show Gist options
  • Select an option

  • Save Velrok/5162942 to your computer and use it in GitHub Desktop.

Select an option

Save Velrok/5162942 to your computer and use it in GitHub Desktop.

Revisions

  1. Waldemar Schwan revised this gist Mar 18, 2013. 1 changed file with 7 additions and 20 deletions.
    27 changes: 7 additions & 20 deletions .slate
    Original file line number Diff line number Diff line change
    @@ -48,28 +48,12 @@ alias 2-topmost ${topmost} ${extra-monitor}
    alias 2-bottomless ${bottomless} ${extra-monitor}

    # 2 Monitor layout
    # layout 2monitors 'iTerm':MAIN_FIRST ${2-rightbottom} | ${1-left}
    # layout 2monitors 'Safari':REPEAT ${1-full}
    # layout 2monitors 'Nightly':REPEAT ${1-full}
    # layout 2monitors 'Sublime Text 2':REPEAT ${1-full}
    # layout 2monitors 'MacVim':REPEAT ${1-full}
    # layout 2monitors 'Mail':MAIN_FIRST ${2-left}
    # layout 2monitors 'Path Finder':MAIN_FIRST ${2-righttop}
    # layout 2monitors 'Xcode':REPEAT ${1-full}
    # layout 2monitors 'Eclipse':REPEAT ${1-full}
    # layout 2monitors 'iTunes':REPEAT ${1-full}
    layout 2-monitors-clojure ${terminal}:MAIN_FIRST ${1-rightless}
    layout 2-monitors-clojure ${browser}:MAIN_FIRST ${1-leftmost}
    layout 2-monitors-clojure ${editor}:MAIN_FIRST ${2-topmost}
    layout 2-monitors-clojure 'Terminal':MAIN_FIRST ${2-bottomless}

    # 1 Monitor layout
    # layout 1monitor 'iTerm':MAIN_FIRST ${1-right}
    # layout 1monitor 'Sublime Text 2':MAIN_FIRST ${1-left}
    # layout 1monitor 'MacVim':MAIN_FIRST ${1-left}
    # layout 1monitor 'Safari':REPEAT ${1-full}
    # layout 1monitor 'Nightly':REPEAT ${1-full}
    # layout 1monitor 'Mail':MAIN_FIRST ${1-full}
    # layout 1monitor 'Path Finder':MAIN_FIRST ${1-full}
    # layout 1monitor 'Xcode':REPEAT ${1-full}
    # layout 1monitor 'Eclipse':REPEAT ${1-full}
    # layout 1monitor 'iTunes':REPEAT ${1-full}

    # Default Layouts
    # default 2monitors resolutions:${laptop};${extra-monitor};
    @@ -115,6 +99,9 @@ bind k:${hyper} ${rightmost}
    bind l:${hyper} ${rightless}
    bind g:${hyper} grid padding:5 ${laptop}:3,2 ${extra-monitor}:3,3

    # layout bindings
    bind c:${hyper} layout 2-monitors-clojure


    # Resize Bindings
    #bind r:${hyper} ${leftmost}
  2. Waldemar Schwan revised this gist Mar 18, 2013. 1 changed file with 13 additions and 9 deletions.
    22 changes: 13 additions & 9 deletions .slate
    Original file line number Diff line number Diff line change
    @@ -13,8 +13,8 @@ config windowHintsSpread true
    #config windowHintsOrder persist

    # Monitor Aliases
    alias laptop 0
    alias extra-monitor 1
    alias laptop 0
    alias extra-monitor 1

    # Misc Aliases
    alias showHintsLeftHand hint ASDFQWERYXCV
    @@ -34,14 +34,18 @@ alias rightmost move screenOriginX+screenSizeX*0.4;screenOriginY screenSize
    alias rightless move screenOriginX+screenSizeX*0.6;screenOriginY screenSizeX*0.4;screenSizeY
    alias leftmost move screenOriginX;screenOriginY screenSizeX*0.6;screenSizeY
    alias leftless move screenOriginX;screenOriginY screenSizeX*0.4;screenSizeY
    alias topmost push top bar-resize:screenSizeY*(0.7)
    alias bottomless push bottom bar-resize:screenSizeY*(0.3)
    # Concrete positions
    alias 1-full move screenOriginX;screenOriginY screenSizeX;screenSizeY ${laptop}
    alias 1-left move screenOriginX;screenOriginY screenSizeX/2;screenSizeY ${laptop}
    alias 1-right move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY ${laptop}
    alias 2-left move screenOriginX;screenOriginY screenSizeX/2;screenSizeY ${extra-monitor}
    alias 2-right move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY ${extra-monitor}
    alias 2-righttop move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY/2 ${extra-monitor}
    alias 2-rightbottom move screenOriginX+screenSizeX/2;screenOriginY+screenSizeY/2 screenSizeX/2;screenSizeY/2 ${extra-monitor}
    alias 1-full ${full} ${laptop}
    alias 1-left ${lefthalf} ${laptop}
    alias 1-leftmost ${leftmost} ${laptop}
    alias 1-right ${righthalf} ${laptop}
    alias 1-rightless ${rightless} ${laptop}
    alias 2-left ${lefthalf} ${extra-monitor}
    alias 2-right ${righthalf} ${extra-monitor}
    alias 2-topmost ${topmost} ${extra-monitor}
    alias 2-bottomless ${bottomless} ${extra-monitor}

    # 2 Monitor layout
    # layout 2monitors 'iTerm':MAIN_FIRST ${2-rightbottom} | ${1-left}
  3. Waldemar Schwan revised this gist Mar 18, 2013. 1 changed file with 13 additions and 4 deletions.
    17 changes: 13 additions & 4 deletions .slate
    Original file line number Diff line number Diff line change
    @@ -19,8 +19,12 @@ alias extra-monitor 1
    # Misc Aliases
    alias showHintsLeftHand hint ASDFQWERYXCV
    alias showNormalHint hint ASDFÖLKJQWERPOIU

    # Application aliases
    alias browser 'Google Chrome'
    alias editor 'Sublime Text 2'
    alias terminal 'iTerm'
    alias pdf-viewer 'Vorschau'

    # Abstract positions
    alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
    @@ -79,8 +83,6 @@ bind pad7 ${leftmost}
    bind pad8 push top bar-resize:screenSizeY/2
    bind pad9 ${rightmost}
    bind padEnter grid padding:5 ${laptop}:3,2 ${extra-monitor}:3,3
    bind pad+ throw next
    bind pad. focus behind
    bind padClear throw ${laptop}
    bind pad= throw ${extra-monitor}
    # bind pad* layout 2monitors
    @@ -100,8 +102,15 @@ bind left:${hyper} ${lefthalf}
    bind right:${hyper} ${righthalf}
    bind up:${hyper} push top bar-resize:screenSizeY/2
    bind down:${hyper} push bottom bar-resize:screenSizeY/2
    bind j:${hyper} throw ${laptop}
    bind k:${hyper} throw ${extra-monitor}
    bind i:${hyper} throw ${laptop}
    bind o:${hyper} throw ${extra-monitor}

    bind h:${hyper} ${leftless}
    bind j:${hyper} ${leftmost}
    bind k:${hyper} ${rightmost}
    bind l:${hyper} ${rightless}
    bind g:${hyper} grid padding:5 ${laptop}:3,2 ${extra-monitor}:3,3


    # Resize Bindings
    #bind r:${hyper} ${leftmost}
  4. Waldemar Schwan revised this gist Mar 15, 2013. 1 changed file with 61 additions and 56 deletions.
    117 changes: 61 additions & 56 deletions .slate
    Original file line number Diff line number Diff line change
    @@ -5,22 +5,22 @@ config resizePercentOf screenSize
    config secondsBetweenRepeat 0.1
    config checkDefaultsOnLoad true
    config focusCheckWidthMax 3000
    config keyboardLayout dvorak
    # config keyboardLayout dvorak
    config windowHintsShowIcons true
    config windowHintsIgnoreHiddenWindows false
    #config windowHintsDuration 5
    config windowHintsSpread true
    #config windowHintsOrder persist

    # Monitor Aliases
    alias mon-laptop 0
    alias mon-samsung 1
    alias laptop 0
    alias extra-monitor 1

    # Misc Aliases
    alias showHintsLeftHand hint AOEUIYQJKX
    alias showNormalHint hint AOEUIDHTNSYXFBPKGMCW
    alias browser 'Nightly'
    alias editor 'MacVim'
    alias showHintsLeftHand hint ASDFQWERYXCV
    alias showNormalHint hint ASDFÖLKJQWERPOIU
    alias browser 'Google Chrome'
    alias editor 'Sublime Text 2'

    # Abstract positions
    alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
    @@ -31,41 +31,41 @@ alias rightless move screenOriginX+screenSizeX*0.6;screenOriginY screenSize
    alias leftmost move screenOriginX;screenOriginY screenSizeX*0.6;screenSizeY
    alias leftless move screenOriginX;screenOriginY screenSizeX*0.4;screenSizeY
    # Concrete positions
    alias 1-full move screenOriginX;screenOriginY screenSizeX;screenSizeY ${mon-laptop}
    alias 1-left move screenOriginX;screenOriginY screenSizeX/2;screenSizeY ${mon-laptop}
    alias 1-right move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY ${mon-laptop}
    alias 2-left move screenOriginX;screenOriginY screenSizeX/2;screenSizeY ${mon-samsung}
    alias 2-right move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY ${mon-samsung}
    alias 2-righttop move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY/2 ${mon-samsung}
    alias 2-rightbottom move screenOriginX+screenSizeX/2;screenOriginY+screenSizeY/2 screenSizeX/2;screenSizeY/2 ${mon-samsung}
    alias 1-full move screenOriginX;screenOriginY screenSizeX;screenSizeY ${laptop}
    alias 1-left move screenOriginX;screenOriginY screenSizeX/2;screenSizeY ${laptop}
    alias 1-right move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY ${laptop}
    alias 2-left move screenOriginX;screenOriginY screenSizeX/2;screenSizeY ${extra-monitor}
    alias 2-right move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY ${extra-monitor}
    alias 2-righttop move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY/2 ${extra-monitor}
    alias 2-rightbottom move screenOriginX+screenSizeX/2;screenOriginY+screenSizeY/2 screenSizeX/2;screenSizeY/2 ${extra-monitor}

    # 2 Monitor layout
    layout 2monitors 'iTerm':MAIN_FIRST ${2-rightbottom} | ${1-left}
    layout 2monitors 'Safari':REPEAT ${1-full}
    layout 2monitors 'Nightly':REPEAT ${1-full}
    layout 2monitors 'Sublime Text 2':REPEAT ${1-full}
    layout 2monitors 'MacVim':REPEAT ${1-full}
    layout 2monitors 'Mail':MAIN_FIRST ${2-left}
    layout 2monitors 'Path Finder':MAIN_FIRST ${2-righttop}
    layout 2monitors 'Xcode':REPEAT ${1-full}
    layout 2monitors 'Eclipse':REPEAT ${1-full}
    layout 2monitors 'iTunes':REPEAT ${1-full}
    # layout 2monitors 'iTerm':MAIN_FIRST ${2-rightbottom} | ${1-left}
    # layout 2monitors 'Safari':REPEAT ${1-full}
    # layout 2monitors 'Nightly':REPEAT ${1-full}
    # layout 2monitors 'Sublime Text 2':REPEAT ${1-full}
    # layout 2monitors 'MacVim':REPEAT ${1-full}
    # layout 2monitors 'Mail':MAIN_FIRST ${2-left}
    # layout 2monitors 'Path Finder':MAIN_FIRST ${2-righttop}
    # layout 2monitors 'Xcode':REPEAT ${1-full}
    # layout 2monitors 'Eclipse':REPEAT ${1-full}
    # layout 2monitors 'iTunes':REPEAT ${1-full}

    # 1 Monitor layout
    layout 1monitor 'iTerm':MAIN_FIRST ${1-right}
    layout 1monitor 'Sublime Text 2':MAIN_FIRST ${1-left}
    layout 1monitor 'MacVim':MAIN_FIRST ${1-left}
    layout 1monitor 'Safari':REPEAT ${1-full}
    layout 1monitor 'Nightly':REPEAT ${1-full}
    layout 1monitor 'Mail':MAIN_FIRST ${1-full}
    layout 1monitor 'Path Finder':MAIN_FIRST ${1-full}
    layout 1monitor 'Xcode':REPEAT ${1-full}
    layout 1monitor 'Eclipse':REPEAT ${1-full}
    layout 1monitor 'iTunes':REPEAT ${1-full}
    # layout 1monitor 'iTerm':MAIN_FIRST ${1-right}
    # layout 1monitor 'Sublime Text 2':MAIN_FIRST ${1-left}
    # layout 1monitor 'MacVim':MAIN_FIRST ${1-left}
    # layout 1monitor 'Safari':REPEAT ${1-full}
    # layout 1monitor 'Nightly':REPEAT ${1-full}
    # layout 1monitor 'Mail':MAIN_FIRST ${1-full}
    # layout 1monitor 'Path Finder':MAIN_FIRST ${1-full}
    # layout 1monitor 'Xcode':REPEAT ${1-full}
    # layout 1monitor 'Eclipse':REPEAT ${1-full}
    # layout 1monitor 'iTunes':REPEAT ${1-full}

    # Default Layouts
    default 2monitors resolutions:${mon-laptop};${mon-samsung};
    default 1monitor resolutions:${mon-laptop}
    # default 2monitors resolutions:${laptop};${extra-monitor};
    # default 1monitor resolutions:${laptop}

    # Numpad location Bindings
    bind pad0 ${showHintsLeftHand}
    @@ -78,41 +78,46 @@ bind pad6 ${righthalf}
    bind pad7 ${leftmost}
    bind pad8 push top bar-resize:screenSizeY/2
    bind pad9 ${rightmost}
    bind padEnter grid padding:5 ${mon-laptop}:6,2 ${mon-samsung}:8,3
    bind padEnter grid padding:5 ${laptop}:3,2 ${extra-monitor}:3,3
    bind pad+ throw next
    bind pad. focus behind
    bind pad* layout 2monitors
    bind pad/ layout 1monitor
    bind padClear throw ${laptop}
    bind pad= throw ${extra-monitor}
    # bind pad* layout 2monitors
    # bind pad/ layout 1monitor

    bind e:cmd ${showNormalHint}
    # bind e:cmd ${showNormalHint}

    # ======================================
    # The HYPER key
    # ======================================

    alias hyper ctrl;shift;alt;cmd
    alias hyper cmd,alt,ctrl

    # Location bindings
    bind t:${hyper} ${lefthalf}
    bind n:${hyper} ${full}
    bind s:${hyper} ${righthalf}
    bind r:${hyper} throw next
    bind f:${hyper} ${full}
    bind left:${hyper} ${lefthalf}
    bind right:${hyper} ${righthalf}
    bind up:${hyper} push top bar-resize:screenSizeY/2
    bind down:${hyper} push bottom bar-resize:screenSizeY/2
    bind j:${hyper} throw ${laptop}
    bind k:${hyper} throw ${extra-monitor}

    # Resize Bindings
    #bind r:${hyper} ${leftmost}
    #bind g:${hyper} ${rightmost}

    # Focus Bindings
    bind right:${hyper} focus right
    bind left:${hyper} focus left
    bind up:${hyper} focus up
    bind down:${hyper} focus down
    # bind right:${hyper} focus right
    # bind left:${hyper} focus left
    # bind up:${hyper} focus up
    # bind down:${hyper} focus down

    # App bindings
    bind e:${hyper} focus ${browser}
    bind u:${hyper} focus ${editor}
    bind x:${hyper} focus 'Xcode'
    bind g:${hyper} focus 'GitHub'
    bind m:${hyper} focus 'Mail'
    bind i:${hyper} focus 'iTerm'
    bind o:${hyper} focus 'Path Finder'
    # bind e:${hyper} focus ${browser}
    # bind u:${hyper} focus ${editor}
    # bind x:${hyper} focus 'Xcode'
    # bind g:${hyper} focus 'GitHub'
    # bind m:${hyper} focus 'Mail'
    # bind i:${hyper} focus 'iTerm'
    # bind o:${hyper} focus 'Path Finder'
  5. @trishume trishume created this gist Nov 20, 2012.
    118 changes: 118 additions & 0 deletions .slate
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,118 @@
    # Configs
    config defaultToCurrentScreen true
    config nudgePercentOf screenSize
    config resizePercentOf screenSize
    config secondsBetweenRepeat 0.1
    config checkDefaultsOnLoad true
    config focusCheckWidthMax 3000
    config keyboardLayout dvorak
    config windowHintsShowIcons true
    config windowHintsIgnoreHiddenWindows false
    #config windowHintsDuration 5
    config windowHintsSpread true
    #config windowHintsOrder persist

    # Monitor Aliases
    alias mon-laptop 0
    alias mon-samsung 1

    # Misc Aliases
    alias showHintsLeftHand hint AOEUIYQJKX
    alias showNormalHint hint AOEUIDHTNSYXFBPKGMCW
    alias browser 'Nightly'
    alias editor 'MacVim'

    # Abstract positions
    alias full move screenOriginX;screenOriginY screenSizeX;screenSizeY
    alias lefthalf move screenOriginX;screenOriginY screenSizeX/2;screenSizeY
    alias righthalf move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY
    alias rightmost move screenOriginX+screenSizeX*0.4;screenOriginY screenSizeX*0.6;screenSizeY
    alias rightless move screenOriginX+screenSizeX*0.6;screenOriginY screenSizeX*0.4;screenSizeY
    alias leftmost move screenOriginX;screenOriginY screenSizeX*0.6;screenSizeY
    alias leftless move screenOriginX;screenOriginY screenSizeX*0.4;screenSizeY
    # Concrete positions
    alias 1-full move screenOriginX;screenOriginY screenSizeX;screenSizeY ${mon-laptop}
    alias 1-left move screenOriginX;screenOriginY screenSizeX/2;screenSizeY ${mon-laptop}
    alias 1-right move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY ${mon-laptop}
    alias 2-left move screenOriginX;screenOriginY screenSizeX/2;screenSizeY ${mon-samsung}
    alias 2-right move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY ${mon-samsung}
    alias 2-righttop move screenOriginX+screenSizeX/2;screenOriginY screenSizeX/2;screenSizeY/2 ${mon-samsung}
    alias 2-rightbottom move screenOriginX+screenSizeX/2;screenOriginY+screenSizeY/2 screenSizeX/2;screenSizeY/2 ${mon-samsung}

    # 2 Monitor layout
    layout 2monitors 'iTerm':MAIN_FIRST ${2-rightbottom} | ${1-left}
    layout 2monitors 'Safari':REPEAT ${1-full}
    layout 2monitors 'Nightly':REPEAT ${1-full}
    layout 2monitors 'Sublime Text 2':REPEAT ${1-full}
    layout 2monitors 'MacVim':REPEAT ${1-full}
    layout 2monitors 'Mail':MAIN_FIRST ${2-left}
    layout 2monitors 'Path Finder':MAIN_FIRST ${2-righttop}
    layout 2monitors 'Xcode':REPEAT ${1-full}
    layout 2monitors 'Eclipse':REPEAT ${1-full}
    layout 2monitors 'iTunes':REPEAT ${1-full}

    # 1 Monitor layout
    layout 1monitor 'iTerm':MAIN_FIRST ${1-right}
    layout 1monitor 'Sublime Text 2':MAIN_FIRST ${1-left}
    layout 1monitor 'MacVim':MAIN_FIRST ${1-left}
    layout 1monitor 'Safari':REPEAT ${1-full}
    layout 1monitor 'Nightly':REPEAT ${1-full}
    layout 1monitor 'Mail':MAIN_FIRST ${1-full}
    layout 1monitor 'Path Finder':MAIN_FIRST ${1-full}
    layout 1monitor 'Xcode':REPEAT ${1-full}
    layout 1monitor 'Eclipse':REPEAT ${1-full}
    layout 1monitor 'iTunes':REPEAT ${1-full}

    # Default Layouts
    default 2monitors resolutions:${mon-laptop};${mon-samsung};
    default 1monitor resolutions:${mon-laptop}

    # Numpad location Bindings
    bind pad0 ${showHintsLeftHand}
    bind pad1 ${leftless}
    bind pad2 push bottom bar-resize:screenSizeY/2
    bind pad3 ${rightless}
    bind pad4 ${lefthalf}
    bind pad5 ${full}
    bind pad6 ${righthalf}
    bind pad7 ${leftmost}
    bind pad8 push top bar-resize:screenSizeY/2
    bind pad9 ${rightmost}
    bind padEnter grid padding:5 ${mon-laptop}:6,2 ${mon-samsung}:8,3
    bind pad+ throw next
    bind pad. focus behind
    bind pad* layout 2monitors
    bind pad/ layout 1monitor

    bind e:cmd ${showNormalHint}

    # ======================================
    # The HYPER key
    # ======================================

    alias hyper ctrl;shift;alt;cmd

    # Location bindings
    bind t:${hyper} ${lefthalf}
    bind n:${hyper} ${full}
    bind s:${hyper} ${righthalf}
    bind r:${hyper} throw next

    # Resize Bindings
    #bind r:${hyper} ${leftmost}
    #bind g:${hyper} ${rightmost}

    # Focus Bindings
    bind right:${hyper} focus right
    bind left:${hyper} focus left
    bind up:${hyper} focus up
    bind down:${hyper} focus down

    # App bindings
    bind e:${hyper} focus ${browser}
    bind u:${hyper} focus ${editor}
    bind x:${hyper} focus 'Xcode'
    bind g:${hyper} focus 'GitHub'
    bind m:${hyper} focus 'Mail'
    bind i:${hyper} focus 'iTerm'
    bind o:${hyper} focus 'Path Finder'