When comparing Hammerspoon vs KWM, the Slant community recommends Hammerspoon for most people. In the question“What is the best window manager for Mac?” Hammerspoon is ranked 10th while KWM is ranked 19th. 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 Works in the same way that Xmonad & i3 does for Linux
For those who would like the same tiling window management of Xmonad and i3.
Pro Runs in the background
The application runs in the background. There is no indication that it is running except the automatic tiling of the windows. There is no menu bar icon or icon in the dock.
Pro Windows respond very fast
Most users claim the tiling and splitting of the windows in KWM respond more quickly and more reliably than the only other known window manager of its type: Amethyst.
Pro Software is free and open source
Pro Highly configurable
Using the config file (kwmrc) you can configure a variety of options including Window spacing and padding, borders, hot-key commands, etc... There are those who would say that the possibilities are limitless.
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 No longer being developed
Sadly the developer has moved on to work on a different project (chunkwm), so there will be no more updates for KWM. However the code works well; no matter what version of macOS you are using.
Con Takes long to set up
You need to use the terminal and edit the configuration file in order to adjust it to the way you want. This might be a little confusing for basic users. But once you have it set, you can just copy the config file and use it on a multiple amount of machines.
Con You need HomeBrew to install it
Homebrew is required to install it. Takes more to get it work in the terminal to get it installed and working on your system.