I believe that the Finder remembers the last view that you set.
So, if you make a macro that changes the window to gallery view, all subsequent views will be set to gallery.
You could make two macros. One that sets gallery, and the other that would set your normal view. Then you would just trigger the needed macro/view as you like.
And here is a AppleScript that will toggle the view between Gallery and Column:
tell application "Finder"
activate
if the current view of Finder window 1 is column view then
set the current view of Finder window 1 to flow view
else
set the current view of Finder window 1 to column view
end if
end tell
I too like to have most of my folders configured a certain way, but have select folders configured differently. So I built a macro that ensures they are configured a specific way anytime the Finder folder changes.
For instance most of my folders I like to use list view and grouped by kind, but certain other folders (like my downloads folder) are configured to use stacks.
So whenever the front Finder window changes, it gets it's name and configures it accordingly. The macro is below if you want to check it out to see what I am talking about. If you have any questions about it don't hesitate to ask.