It is a spoon for hammerspoon
Copy and change from Here and There
cd ~
cd .hammerspoon/Spoons
git clone https://github.com/northleafup/WinWin.spoon.gitYou must load spoon ModalMgr like this first
hs.loadSpoon("ModalMgr")Next, load this spoon
hs.loadSpoon("WinWin")Then add the following code
spoon.ModalMgr.supervisor:enter()How to use in MacOs with my config
cd ~
cd .hammerspoon/Spoons
git clone https://github.com/northleafup/WinWin.spoon.gitplease refer this.
Create yourseft config .If there is no directory "~/.hammerspoon/private", please make it
cd ~
cd .hammerspoon
mkdir privateCopy example config
cd ~
cp .hammerspoon/Spoons/WinWin.spoon/WinWin.lua ~/.hammerspoon/private/WinWin.luaYou can update the function body ,but can not delete this function