title: wmctrl utility tags: x11 # Switching To Windows ``` wmctrl -l # list WID=$(wmctrl -l | grep Boing | head -n1 | cut -f1 -d\ ) # get Window ID matching Boing wmctrl -i -a $WID # switch to window with ID $WID wmctrl -a Boing # Find first window with Boing in title and switch to it ``` # Switching Desktops ``` wmctrl -d # list desktops wmctrl -s 3 # switch to desktop 3 ```