From time to time I want to change my display resolution, so I type these commands in terminal:
xrandr --newmode [newmodedetailsbs]
xrandr --addmode [display] [newmodeid]
xrandr --output [display] --mode [newmodeid]
I know what variables to use and they work perfectly, but it's a nuisance to retype them every time I want to change display modes. I'd prefer to create a simple script containing these commands but am having trouble finding basic information on scripting so that I can create the script. Can someone help?