Just like its website says Hammerspoon is staggeringly powerful (and also staggeringly fun). This is my Hammerspoon config. It's very simple, but it allowed me to replace two other apps: Spectacle for moving windows around, and Karabiner which I used for quickly switching between apps.
This is where it all began:
🎧 Have you ever had your bluetooth headphones disconnect and inadvertently & loudly share your unconventional music taste with the rest of the office/coffeeshop?
— Hassy Veldstra (@hveldstra) March 11, 2020
1. brew install hammerspoon
2. drop a few lines into ~/.hammerspoon/init.lua
3. never again! 🤫 pic.twitter.com/RsHJn17djR
Install Hammerspoon:
brew cask install hammerspoon
Install MiroWindowManager spoon (add-on):
tmpfn="spoon.zip" ; tmpdn="`mktemp -d`" \
curl -L https://github.com/miromannino/miro-windows-manager/raw/master/MiroWindowsManager.spoon.zip --output "$tmpdn/$tmpfn" && \
unzip "$tmpdn/$tmpfn" -d "$tmpdn" && \
mv "$tmpdn/MiroWindowsManager.spoon" ~/.hammerspoon/Spoons
Drop the code from init.lua
into ~/.hammerspoon/init.lua