Dual Monitor HDPI script

Just registered to share my script to automatically adjust resolution and settings for single monitor (3200x1800) and dual monitor (3200x1800 left, 1920x1080 right) for XFCE. It can be adjusted to match different situations when a hdpi-laptop (Dell XPS13 in my case) is used in combination with a lower res monitor. This way, I have automatic setups for work and travel/mobile use.When I use dual monitors, I do not need large fonts and icons, but Conky position and resolutions should be adjusted to obtain a nice desktop spanning over both monitors.Please modify it according to your settings and needs. Adjust resolutions, monitor output label (HDMI, VGA, eDPI), path to Conky (if you use it), themes and fonts, icon sizes according to your preferences and needs.

Works great for me, but be careful and test the critical commands with your own settings using the terminal before adding it to your startup.