From d3b5c71503c7a50f84e1077d45e99ec8d57d4efc Mon Sep 17 00:00:00 2001 From: simono41 Date: Sun, 21 Oct 2018 22:14:26 +0200 Subject: [PATCH] xplan-multiple-windows --- newstarter.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100755 newstarter.sh diff --git a/newstarter.sh b/newstarter.sh new file mode 100755 index 0000000..47da08c --- /dev/null +++ b/newstarter.sh @@ -0,0 +1,20 @@ +#!/bin/bash +numscreens=3 +count=0 +if [ -z $1 ] ; then +./X-Plane-x86_64 --monitor_bounds=0,0,1920,1080,1920,0,1920,1080,3840,0,1920,1080 & + while [ $count -lt $numscreens ]; do + sleep 1 + count=$( wmctrl -l | grep X-System | wc -l) + done +fi +screencount=1 +wmctrl -l | grep X-Syst |awk '{ print $1 }' | while read ; do + wmctrl -i -r "$REPLY" -T "X-System_$screencount" + let screencount=screencount+1 +done +wmctrl -r "X-System_1" -e 1,0,0,1920,1080 +wmctrl -r "X-System_2" -e 1,1920,0,1920,1080 +wmctrl -r "X-System_3" -e 1,3840,0,1920,1080 + +# ./newstarter fix