Created
January 3, 2025 15:33
-
-
Save scheibo/425e455b05631956aee335ee2d0d2861 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is the default .slate file. | |
# If no ~/.slate file exists this is the file that will be used. | |
config defaultToCurrentScreen true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
# Resize Bindings | |
bind right:alt resize +10% +0 | |
bind left:alt resize -10% +0 | |
bind up:alt resize +0 -10% | |
bind down:alt resize +0 +10% | |
bind right:ctrl;alt resize -10% +0 bottom-right | |
bind left:ctrl;alt resize +10% +0 bottom-right | |
bind up:ctrl;alt resize +0 +10% bottom-right | |
bind down:ctrl;alt resize +0 -10% bottom-right | |
# Push Bindings | |
bind right:alt;cmd push right bar-resize:screenSizeX/2 | |
bind left:alt;cmd push left bar-resize:screenSizeX/2 | |
bind up:alt;cmd push up bar-resize:screenSizeY/2 | |
bind down:alt;cmd push down bar-resize:screenSizeY/2 | |
# Nudge Bindings | |
bind right:shift;alt nudge +10% +0 | |
bind left:shift;alt nudge -10% +0 | |
bind up:shift;alt nudge +0 -10% | |
bind down:shift;alt nudge +0 +10% | |
# Throw Bindings | |
bind f:alt;cmd move screenOriginX;screenOriginY screenSizeX;screenSizeY | |
bind up:ctrl;alt;cmd corner top-left resize:screenSizeX/2;screenSizeY/2 | |
bind right:ctrl;alt;cmd corner top-right resize:screenSizeX/2;screenSizeY/2 | |
bind left:ctrl;alt;cmd corner bottom-left resize:screenSizeX/2;screenSizeY/2 | |
bind down:ctrl;alt;cmd corner bottom-right resize:screenSizeX/2;screenSizeY/2 | |
# Focus Bindings | |
bind right:cmd focus right | |
bind left:cmd focus left | |
bind up:cmd focus up | |
bind down:cmd focus down | |
bind up:cmd;alt focus behind | |
bind down:cmd;alt focus behind | |
# Window Hints | |
bind esc:cmd hint | |
# Center | |
bind c:alt;cmd move screenOriginX+((screenSizeX-windowSizeX)/2);screenOriginY+((screenSizeY-windowSizeY)/2) windowSizeX;windowSizeY | |
bind v:alt;cmd move screenOriginX+((screenSizeX-(screenSizeX/7*6))/2);screenOriginY+((screenSizeY-(screenSizeY/9*8))/2) screenSizeX/7*6;screenSizeY/9*8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment