To install wmk using Homebrew, first add the tap:
brew tap bk/wmk
…and install it:
brew install --build-from-source wmk
Now you should be able to use the wmk command normally.
For further information, see the wmk documentation.
brew uninstall wmk