This tutorial will explain you how to redirect the output of scorched3d to a separate X session (grafic session) to be capable to switch between the desktop & the game with a simple key combination.
in this turial we assume that your default X session is #0, so, we'll add a new session #1, also it's assumed that the path to your scorched3d binary is /usr/bin/scorched3d, you might have to customize them according to your distribution/installation
switching between them will act like Alt+Tab, the shortcut keys are:
now we'll add a new key for the X session #1 by typing add :1.0 MIT-MAGIC-COOKIE-1 and copying the long string in at the end of the line wich starts with your yourhostname:0
beryl crashes when launching another X session, we can temporaneally disable it while running the game by sending the USR2 signal; so the script becomes:
#!/bin/bash
killall -USR2 beryl-manager
xinit /usr/bin/_scorched3dc $* -- :1
killall -USR2 beryl-manager
save & close the file
to make the script executable like a binary, you need to send the command: