summaryrefslogtreecommitdiffstats
path: root/sample_configuration/switchToManager.sh
blob: 84f3c374651205318d6e4caf84754cfd9c7560ae (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash

# make sure vmplayer is really on workspace 0
WINDOWS=$(xdotool search --class vmplayer)
for window in $WINDOWS; do
	wmctrl -i -r $window -t 0
done

# move PVS-Manager to workspace 1 and focus it
wt="PVS2-Manager"
wmctrl -r "$wt" -t 1
wmctrl -s 1
wmctrl -a "$wt"