For macOS Move windows using keyboard, resize them to halves, thirds and quarters! Functionality like popular paid App-store app Magnet. This is an easily configurable and extendible Hammerspoon script that implements all of the Magnet keybindings.
Based on Hammerspoon
- Download and install hammerspoon.
- Open hammerspoon, give accessibility permission to hammerspoon, click menu bar icon and click Open Config.
- Add the contents of my init.lua to config file.
- Click menu bar icon and click reload configuration.
- Open Hammerspoon preferences from menu bar icon and tick Launch Hammerspoon at login, Check for updates, untick show dock icon and tick show menu bar icon.
ctrl-option-left : Left
ctrl-option-right : Right
ctrl-option-Up : Top
ctrl-option-Down : Bottom
ctrl-option-U : Top Left
ctrl-option-I : Top Right
ctrl-option-J : Bottom Left
ctrl-option-K : Bottom Right
ctrl-option-D : Left Third
ctrl-option-E : Left Two Thirds
ctrl-option-F : Center Third
ctrl-option-T : Right Two Thirds
ctrl-option-G : Right Third
ctrl-option-enter : Maximize
ctrl-option-C : Center