Установите wmctrl

brew install wmctrl
Armandres