Zainstaluj WMCTRL w Mac

brew install wmctrl
Armandres