When comparing Hammerspoon vs Magnet, the Slant community recommends Hammerspoon for most people. In the question“What are the best power user tools for macOS?” Hammerspoon is ranked 39th while Magnet is ranked 45th. The most important reason people chose Hammerspoon is:
Hammerspoon's Lua scripting and broad API allows you to perform any action you can imagine on your mac. It hooks into many OS APIs directly and has some high-level APIs to manipulate things like Spotify or iTunes. See the full list [here](https://www.hammerspoon.org/docs/).
Ranked in these QuestionsQuestion Ranking
Pro Deeply customizable
Hammerspoon's Lua scripting and broad API allows you to perform any action you can imagine on your mac. It hooks into many OS APIs directly and has some high-level APIs to manipulate things like Spotify or iTunes. See the full list here.
Pro Automate actions based on the operating system
Hammerspoon lets you hook into OS level events and trigger any action you can imagine. From setting up a simple keyboard shortcut to launching a complex workflow using multiple apps and scripts.
Pro Intuitive handling
Just drag the window to one of the sides of the screen and it snaps there. This is especially useful for those who can't be bothered remembering the shortcuts.
At $0.99, it is not that expensive.
Pro Keyboard centric
Easy to learn keyboard shortcuts.
Pro It's often on sale
For example, at the writing of this pro it's currently at $1.
Pro Mouse controllable
Supports dragging a window along the edges of the screen to activate.
Pro Up to six external displays supported
Con Some knowledge of programming required
Hammerspoon is scripted in the Lua programming language, and some familiarity with programming in general will be needed to use it. Some plugins exist that can be used by adding some files to a specific folder, but this will not give the flexibility that is so key to Hammerspoon
Con Cannot setup custom sizes and window positions
Unfortunately, you can only move windows to preset positions.
Con Can't hide the menu bar icon
It would've been nice to be able to hide the icon so it doesn't clutter the menu bar.
Con Can only be purchased from the App Store
Magnet is only available in App Store.
Con Interference when switching between folders
Default Folder-X app "warns" that Magnet App may interfere with it's ability to switch between folders in Open and Save dialogue boxes.
Con Causes cursor bugs in IntelliJ IDEs
Unfortunately, Magnet causes the caret to bounce around in IntelliJ IDEs, this is very annoying.