Next time you’re battered by restlessness or boredom, don’t act it out: just sit with it, and wait for the insight.
Notice closely what you want (or want to avoid). Grab the reins for a minute and get curious instead. Look that bronco in the eye. When it settles down, then do what you will.