I've installed ubuntu on a retina Macbook Pro, and have managed to get the things to look at a reasonable size by scaling the display:
xrandr --output DP-2 --scale 0.9x0.9
When I connect my external monitor, I scale it like so:
xrandr --output DP-4 --scale 1.5x1.5
These work great, except after I unplug my external monitor and plug it back in again, I have to re-run the command to scale it to the size I would like.
How can I have this done automatically? (I would like to avoid just creating a macro to just run that command; I'd like it to run automatically each time I plug in my monitor)