I make specific achievable plans to do something else instead. Preferably things that leave me with a sense of accomplishment. Even dumb things like taking a walk or cleaning something.