Make a macro with the following:
Hold left trigger for just under 0.3 seconds, and hold right trigger for the last 2-3 frames.
For holding the breath, have it hold the left stick (bottom part of timeline for left analog stick), for the full duration.