What I just started playing with is the /chotbar command in macros.
Simple example

/ac sustain <pet>
/chotbar change 1

1 press cast sustain on pet and automatically changes to my main bar