This took me a while to figure out, but I know a lot of people are probably wondering this one. Talent swap macros have been a thing for a while now - in Dragonflight on my Warrior I was looking for a way to get Wrecking and Shattering Throw to be one bind, one macro.
The base macro is pretty simple:
#showtooltip
/cast [known:Shattering Throw] Shattering Throw; Wrecking Throw
But I personally like to have a [@focus] for my shattering throw, I don’t use modifiers, I like having 2 binds on my bars. The macro that actually works for focus as well as talent swapping is as follows:
#showtooltip
/cast [@focus,known:Shattering Throw] Shattering Throw; [@focus,known:Wrecking Throw] Wrecking Throw
I hope this helps anyone else that is looking for this same thing!