Created
February 28, 2019 06:32
-
-
Save troyane/ed4d72a23b7208f160f73710d7abc9a9 to your computer and use it in GitHub Desktop.
Run Trine 1 on Linux with dual screen. Turns off one screen to avoid picture stretching. Turns on screen as soon as you exit the game.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Do some magic here | |
echo "Turn OFF Laptop screen" | |
xrandr --output eDP-1-1 --off | |
if [ `uname -m` == x86_64 ] ; then | |
./trine-bin64 $* | |
else | |
./trine-bin32 $* | |
fi | |
echo "Turn ON Laptop screen" | |
xrandr --output eDP-1-1 --auto | |
xrandr --output eDP-1-1 --left-of HDMI-1-1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment