Changing outine mode with macro?

Game Menu / Interface / Display / Outline mode.
My main in Korthia needs it turned on to see the purple outlines displayed by the Reliquary Sight buff, so I’d like to have it on (3rd mode) when that character enters.

My gathering alt needs it off because mining and herb modes are much more visible with the sparkles that show when outlines are off.

Is there any way to have the mode change automatically as each character enters the world?

There probably a CVar for it. You can easily browse through them with AdvancedInterfaceOptions.