#!/bin/bash workspace=$(($1 + -1)) wmctrl -r :ACTIVE: -t $workspace wmctrl -s $workspace