I've set up (with BarTender4 and Elvui) a PVP action bar configuration like this, with the macros and spells configured the best way for my preferences, where I can cast 32 spells using the 1-12 number keys on my mouse with the addition of ctrl or alt, like so:
I love this, I want to keep it this way. But some of these spells are not good for raids, some could be removed, some added. The macros behind most of the spells (hence the duplicates here, some of the macros triggering the spells behave in different ways) are perfect for PVP but not for raids.
It would be awesome if there was a feature or an add-on that would let me toggle between different configurations depending on what Im about to do, like pressing a hotkey or button switches to a different set of spell / macros on the spell bars. Can this be done?
Best Answer
UPDATED
I've asked the lads over at the ElvUI discord. They say that since bar layouts are stored on Blizzard's end, ElvUI profiles might not be usable in this way. They recommend an addon like https://www.curseforge.com/wow/addons/action-bar-profiles which allows users to save custom action bar profiles, though not all of them seem to be fully updated.
OLD ANSWER
nearly every WoW addon has support for what's called "Profiles". Profiles allow you to configure distinct configurations and switch between them at will.
A reddit post explains how to do so:
Note: since you're using Bartender, you'll probably have to use the Bartender profile page. This also doesn't switch talents automatically if you use different talents per content type, you'll have to do that yourself.