One way is to launch separate X Server for the game. This way you can change between the X server running your desktop and the one running the game easily. This can be achieved with a short script.
Guide (I use CLI-way to make it universal, no matter which desktop environment user might use and so):
First, let's make the script-file
Open up the terminal then run
You may change amne to something else, that's our script-file's name. Also make sure your terminal's current directory is your home, if not, then
to move there.
Then copy the following to your script-file, opened in nano
Quote:#!/bin/bash
DISPLAY=:1.0
xinit /opt/AmnesiaDemo/Amnesia.bin64 $* -- :1
You need to adjust "/opt/AmnesiaDemo/Amnesia.bin64"-part depending on where the game is installed and if you're using 32 or 64 bit version, basically just point it to your Amnesia-binary. Save the file with ctrl+x
NOTE: Using amnesia's launch-command directly DIDN'T work for me, It launched the launcher in new X Server and I couldn't use mouse there, this way it worked all good for me.
Next, let's allow the file to be run, if this is not done, you will get "permission denied" if you try to run the file.
All is set! Now you can run it via your desktop environment or via terminal
You change between the X servers with ctrl+alt+fx
x being like f7. Default X server where your desktop runs, should be F7 and new X server should be F8.
So if you want to get back to your desktop while playing, just pause the game with esc and press ctrl+alt+f7 and when you want to get back to your game, press ctrl+alt+f8.
EDIT: Also, after you quit the game, you might need to go manually back to your desktop X server with ctrl+alt+f7.
Hope this helps!