Spoon for Tiling your windows on a Mac using hotkeys
-
Get started with Hammerspoon. Follow the Setup section on Getting Started with Hammerspoon page.
-
Find your hammerspoon script directory. It will likely be
$HOME/.hammerspoon
after installation. -
Download and save
Tiles.spoon
directory to:{your-hammerspoon-path}/Spoons/Tiles.spoon
-
In your
init.lua
file, you should import the spoon as follows:
hs.loadSpoon('Tiles')
Reload your hammerspoon config and you're ready to go 😎
For dev workflow, it is recommended that you symlink Tiles.spoon
to ${HOME}/.hammerspoon/Spoons/Tiles.spoon
and import it in your init.lua
file. Branch out, make changes to the the source code while reloading Hammerspoon. Push and open a PR.
Hold ctrl opt cmd
, press {key}
then choose the window position. N last focused windows will be resized and moved depending on the selected option.
Key | Number of windows |
---|---|
w | 1 |
e | 2 |
q (wide) | 3 |