HammerSpoon config file
All keyboard shortcuts
Based on grid system, it is easy to customize
- Maximize window (not the fullscreen mode)
- Move window to another screen
- Set window size immediately to half of the current screen toward ANY direction
- Stretch or shrink window size toward ANY direction
Note that: I could add a
move window
feature to this, but I found it not useful to me.
- Install HammerSpoon FIRST
- Download, Copy or
git clone
my config file - Put the
init.lua
in ~/.hammerspoon
- Move window to another screen
Ctrl-Alt + Left
Set current window to the Left screenCtrl-Alt + Right
Set current window to the Right screen
- Set window size to full screen
Ctrl-Alt-Command + M
- Set window to center (keep window height)
Ctrl-Alt-Command + C
- Set window size to EXACTLY half of the current screen
Ctrl-Alt-Command + Left
Half the width, stick to LeftCtrl-Alt-Command + Right
Half the width, stick to RightCtrl-Alt-Command + Up
Half the width, stick to TopCtrl-Alt-Command + Down
Half the width, stick to Bottom
- Adjust window size (anchor top, left)
Ctrl-Alt-Shift + Left
Move Right edge to the LeftCtrl-Alt-Shift + Right
Move Right edge to the RightCtrl-Alt-Shift + Up
Move Bottom edge UpCtrl-Alt-Shift + Down
Move Bottom edge Down
- Adjust window size (anchor right, bottom)
Alt-Command-Shift + Left
Move Left edge to the LeftAlt-Command-Shift + Right
Move Left edge to the RightAlt-Command-Shift + Up
Move Top edge UpAlt-Command-Shift + Down
Move Top edge Down
Incase you might be confused
- Centering and Maximize
- Half the screen
- Resize (anchor top, left)
- Resize (anchor bottom, right)
- I would recommend to disable animation. Especially for resize anchoring Bottom, Right
- Feel free to open an issue or submit your Pull Request ^_^
- Any suggestions, comments, thoughts are all welcome