1) Identify all totems you have for each element that are actually useful (lol windwall), in order of priority
2) Count the number of shaman in your group
3) ???
4) Profit!


Hint, step 3 involves something along the lines of /castsequence WaterTotem, AirTotem, EarthTotem, FireTotem


Personally, I used castsequences for laying totems in the past, and I didn't like it. I now use 1 button per totem type.

Shammy1, button1: Windfury Totem
Shammy2, button1: Grace of Air Totem
Shammy3, button1: Nature Resist Totem
Shammy4, button1: Windlol Totem

Etc...

And put searing totem, magma totem, grounding totem, fire nova totem, and tremor totem on the same button as well since I only use them during specific times.

This prevents the problem of castsequence coming un-sync'ed between computers, not resetting properly, and/or you only need one type of totem and don't care about the rest (waste of mana to lay the rest).