Advertisement
METAJIJI

cs in X

Feb 23rd, 2016
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.37 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. DISPLAY=:2
  4. WINEPREFIX="/home/metall/.wine"
  5.  
  6. X_PID=$(ps ax | awk '$5 ~ /\/usr\/bin\/X/{ if($0 ~ /:0/) print $1 }') # '
  7. [ "$X_PID" -gt 0 ] && sudo X $DISPLAY -ac -terminate -config xorg.conf vt6 -novtswitch & sleep 5
  8.  
  9. nice -20 wine C:\\windows\\command\\start.exe /Unix \
  10.     "/home/metall/.wine/drive_c/Games/All-CS 1.6 Final/hl.exe" \
  11.     -game cstrike -steam
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement