Macro to show/hide action bars

I’m looking for a macro to use while RPing to hide my action bars for a clearer screen while enjoying the environment and such. I use the default UI and I’m looking to hide the extra bars specifically.

In edit mode. Look for the ‘ bar visible ‘ feature.