Created
September 14, 2021 12:09
-
-
Save gonaumov/3fc11457928641564c2834ab247d4af3 to your computer and use it in GitHub Desktop.
start-fix.sh
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/sh | |
export MESA_GL_VERSION_OVERRIDE=4.4 | |
chmod -R 0700 game desktop winetools desktop-editor editor desktop-fix start | |
cd "`dirname "$0"`" | |
# Improvement. Now it will detect active output | |
# automatically! :) In the dark, I drink a whole | |
# box of Schweps. How great I am! | |
active_output=$(xrandr | grep [[:blank:]]connected[[:blank:]] | awk '{ print $1 }') | |
xrandr --output $active_output --mode 1024x768 & \ | |
"`dirname "$0"`"/start && xrandr --output $active_output --mode 1920x1080 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment