Quickly switch between two custom screen resolutions from the Linux command line

Primarily as a reminder to myself, here’s a small script droppable into ~/bin that allows switching between two custom Linux screen resolutions, that is, resolutions the X server does not necessarily already know about, from the command line.