Macro to switch between SoR/SoC based on weapons?

I know there are macros that use different forms of faerie fire based on the druid form you are in. So what would the macro be for a slot to show and use SoC if a two handed weapon is equipped vs using SoR if a 1H + Shield is equipped?

#showtooltip
/cast [equipped:Two-Handed Axes/Two-Handed Maces/Two-Handed Swords/Polearms] Seal of Command; Seal of Righteousness

edit:
This would be shorter but I haven’t tested it

#showtooltip
/cast [equipped:Shields] Seal of Righteousness; Seal of Command