Instal WMCTRL di Mac

brew install wmctrl
Armandres