Article 54VTD I would like my desktop resolution to revert back after closing game from script

I would like my desktop resolution to revert back after closing game from script

by
Krackerjak1
from LinuxQuestions.org on (#54VTD)
Hello. I am trying to write a script to start my game by changing desktop resolution then when i am finished playing and close the game the desktop will revert back to the previous resolution. Here is what I have and it works as far as getting the game up and running but Ineed it to revert back to 1400x900

----------------------------------------

#!/bin/bash
eject /dev/sr0
cdemu load 0 "/media/dell/My Book/ISO Games and Software/RCT_1_2.ISO"
sudo xrandr --size 640x480
env WINEPREFIX="/home/dell/.wine" wine C:\\windows\\command\\start.exe /Unix /home/dell/.wine/drive_c/users/dell/Start\ Menu/Programs/Hasbro\ Interactive/RollerCoaster\ Tycoon/RollerCoaster\ Tycoon.lnk

-----------------------------------------

What can I add to revert back when rct.exe exitslatest?d=yIl2AUoC8zA latest?i=06P4yP51fy0:YVRmJOXlsuI:F7zBnMy latest?i=06P4yP51fy0:YVRmJOXlsuI:V_sGLiP latest?d=qj6IDK7rITs latest?i=06P4yP51fy0:YVRmJOXlsuI:gIN9vFw06P4yP51fy0
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments