How to make gimp open in single window mode automatically.

A) Install xdotool
B) define a hotkey in preferences to enter single window mode ex. super + w
C) Put the following script somewhere...