Permalink
Browse files

Fixing nexuiz to start at proper resolution

  • Loading branch information...
1 parent 55d9430 commit f2e68efa01b61e2645ae33df41436499de8dbb46 @svenstaro committed May 3, 2011
Showing with 5 additions and 0 deletions.
  1. +5 −0 games/nexuiz/init.sh
View
5 games/nexuiz/init.sh
@@ -0,0 +1,5 @@
+mkdir -p /home/gamer/.nexuiz/data/
+xres=$(xrandr -q | grep \* | sed -e "s/^[ \t]*//" -e "s/\([0-9]*x[0-9]*\).*/\1/" | cut -d'x' -f1)
+yres=$(xrandr -q | grep \* | sed -e "s/^[ \t]*//" -e "s/\([0-9]*x[0-9]*\).*/\1/" | cut -d'x' -f2)
+echo "vid_width \"$xres\"
+vid_height \"$yres\"" > /home/gamer/.nexuiz/data/autoexec.cfg

0 comments on commit f2e68ef

Please sign in to comment.