You wouldn't. You can only use multiple actions/abilities in a macro if they do not trigger the global cooldown--totems, LB, and shocks all do.
You could, however, set a macro so that when you left click on a button it drops a totem, middle click for lightning bolt, and right click for a shock.