A while back i knocked up a little script to launch a program in "full screen mode" without using a WM. Primarily this was/is used to run games from CLI or terminal on one monitor on a new X session.
Now i am looking to expand that and provide the game on one monitor and other apps / WM on the second. My difficulty comes in finding the right command line to do such a thing!
A quick recap on what I've got so far (files are trimmed for readability):
File: gamelist
Code:
# Starcraft
gamelist[0]="Starcraft (wine)"
games[0]="wine /mnt/windrive/drive_c/Program\ Files/Starcraft/Starcraft.exe"
res[0]="640480"
depth[0]="16"
...
# Neverwinter Nights
gamelist[2]="Neverwinter Nights (native)"
games[2]="cd /mnt/windrive/Linux/NWN/ && nwn"
res[2]="12801024"
depth[2]="24"
File: run (blue bits is the major problem area)
Code:
source $HOME/scripts/gamelist
...
xinit /bin/bash -c "${games[$2]} & xterm -display :2.1 &" -- :2 -config xorg.gaming.conf -layout "${res[$2]}" -depth "${depth[$2]}"
Run is called like: run -p 2 # for NWN
In xorg.gaming.conf i have a lot of server layout section that look like:
Code:
Section "ServerLayout"
Identifier "800600"
Screen 0 "800600" 0 0
Screen 1 "12801024a" RightOf "800600"
InputDevice "Mouse1" "CorePointer"
InputDevice "Keyboard1" "CoreKeyboard"
EndSection
And using the command: startx -- -config xorg.gaming.conf
I can verify that it works as intended, in that i get two distinct (ie non-Twinview / mergedFB) displays under xfce.
I also found that manually calling `xterm -display :2.1` sends an xterm to the second monitor once i am in game-mode.
Any thoughts on getting programA on the left and programB on the right?
I can supply the full code to the scripts & config files I'm using if it'll help - the most important parts are already here =)
Yours,
- Piete - currently scratching his head in confusion.