Skip to content

Instantly share code, notes, and snippets.

@troyane
Created February 28, 2019 06:32
Show Gist options
  • Save troyane/ed4d72a23b7208f160f73710d7abc9a9 to your computer and use it in GitHub Desktop.
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.
#!/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