Updated to include https://github.com/GigaPatches's improvements.

* Impleneted fix for setups with a primary screen declared
* Switched the resolutions array to use a single perl command instead
* of 14 cuts and awks.