diff options
-rw-r--r-- | README.md | 11 | ||||
-rw-r--r-- | sample_configuration/switchBack.sh | 3 | ||||
-rw-r--r-- | sample_configuration/switchToManager.sh | 6 |
3 files changed, 20 insertions, 0 deletions
@@ -56,5 +56,16 @@ We suggest to implement additional locking measures in these files. In the keyboard input is grabbed by VMWare Player) type while the screen is locked. +### Switch-Scripts +For some deployments it can make sense to run `pvsmgr` on a regular instance +(with a running VM) instead of a dedicated manager computer. + +If `pvsclient` detects that it is running on a instructor's computer it shows +the button "Switch" with which the user can switch to a running pvsmgr window. +To perform the window switching `pvsclient` calls the pair of shell scripts +`switchToManager.sh` and `switchBack.sh`. See the sample configuration which +uses `wmctrl` to perform the switching. + + ### Network Setup diff --git a/sample_configuration/switchBack.sh b/sample_configuration/switchBack.sh new file mode 100644 index 0000000..cc2bae9 --- /dev/null +++ b/sample_configuration/switchBack.sh @@ -0,0 +1,3 @@ +#!/bin/bash +# switch back to desktop 0 +wmctrl -s 0 diff --git a/sample_configuration/switchToManager.sh b/sample_configuration/switchToManager.sh new file mode 100644 index 0000000..86c6704 --- /dev/null +++ b/sample_configuration/switchToManager.sh @@ -0,0 +1,6 @@ +#!/bin/bash +# move PVS-Manager to workspace 1 and focus it +wt="PVS2-Manager" + +wmctrl -r $wt -t 1 +wmctrl -a $wt |