It is a spoon for hammerspoon
Copy and change from Here
cd ~
cd .hammerspoon/Spoons
git clone https://github.com/northleafup/Hazel.spoon.git
Create yourseft config .If there is no directory "~/.hammerspoon/private", please make it
cd ~
cd .hammerspoon
mkdir private
Copy example config, Add yourseff logic. There is one Demo. How to watch directory "~/Downloads"
cd ~
cp .hammerspoon/Spoons/Hazel.spoon/hazel.lua ~/.hammerspoon/private/hazel.lua
If you use my config, please refer this.
else:
Update init.lua file ,add content as follow
hs.loadSpoon("Hazel")