In the Vitakkasaṇṭhāna Sutta — The Relaxation of Thoughts (MN 20) the Buddha provides five themes to attend to at the appropriate times for those intent on heightening the mind. With accompanying images, they are:
Small Peg Knocking Out Larger One (to attend to another theme)
There is the case where evil, unskillful thoughts—connected with desire, aversion, or delusion—arise in a monk while he is referring to and attending to a particular theme. He should attend to another theme, apart from that one, connected with what is skillful. When he is attending to this other theme, apart from that one, connected with what is skillful, then those evil, unskillful thoughts—connected with desire, aversion, or delusion—are abandoned and subside. With their abandoning, he steadies his mind right within, settles it, unifies it, and concentrates it. Just as a dexterous carpenter or his apprentice would use a small peg to knock out, drive out, and pull out a large one; in the same way, if evil, unskillful thoughts—connected with desire, aversion, or delusion—arise in a monk while he is referring to and attending to a particular theme, he should attend to another theme, apart from that one, connected with what is skillful. When he is attending to this other theme, apart from that one, connected with what is skillful, then those evil, unskillful thoughts—connected with desire, aversion, or delusion—are abandoned and subside. With their abandoning, he steadies his mind right within, settles it, unifies it, and concentrates it.
Disgusted By Wearing Carcass (to know certain thoughts are unskillful, blameworthy, and resulting in stress)

If evil, unskillful thoughts—connected with desire, aversion, or delusion—still arise in the monk while he is attending to this other theme, connected with what is skillful, he should scrutinize the drawbacks of those thoughts: ‘Really, these thoughts of mine are unskillful, these thoughts of mine are blameworthy, these thoughts of mine result in stress.’ As he is scrutinizing the drawbacks of those thoughts, those evil, unskillful thoughts—connected with desire, aversion, or delusion—are abandoned and subside. With their abandoning, he steadies his mind right within, settles it, unifies it, and concentrates it. Just as a young woman—or man—fond of adornment, would be horrified, humiliated, and disgusted if the carcass of a snake or a dog or a human being were hung from her neck; in the same way, if evil, unskillful thoughts—connected with desire, aversion, or delusion—still arise in the monk while he is attending to this other theme, connected with what is skillful, he should scrutinize the drawbacks of those thoughts: ‘Really, these thoughts of mine are unskillful, these thoughts of mine are blameworthy, these thoughts of mine result in stress.’ As he is scrutinizing the drawbacks of those thoughts, those evil, unskillful thoughts—connected with desire, aversion, or delusion—are abandoned and subside. With their abandoning, he steadies his mind right within, settles it, unifies it, and concentrates it.
Looking Away (to pay no mind to unskillful thoughts)
If evil, unskillful thoughts—connected with desire, aversion or delusion—still arise in the monk while he is scrutinizing the drawbacks of those thoughts, he should pay no mind and pay no attention to those thoughts. As he is paying no mind and paying no attention to them, those evil, unskillful thoughts are abandoned and subside. With their abandoning, he steadies his mind right within, settles it, unifies it, and concentrates it. Just as a man with good eyes, not wanting to see forms that had come into range, would close his eyes or look away; in the same way, if evil, unskillful thoughts—connected with desire, aversion or delusion—still arise in the monk while he is scrutinizing the drawbacks of those thoughts, he should pay no mind and pay no attention to those thoughts. As he is paying no mind and paying no attention to them, those evil, unskillful thoughts are abandoned and subside. With their abandoning, he steadies his mind right within, settles it, unifies it, and concentrates it.
From Running To Walking To Standing To Sitting To Lying Down (to relax thought fabrications)

If evil, unskillful thoughts—connected with desire, aversion or delusion—still arise in the monk while he is paying no mind and paying no attention to those thoughts, he should attend to the relaxing of thought-fabrication with regard to those thoughts. As he is attending to the relaxing of thought-fabrication with regard to those thoughts, those evil, unskillful thoughts are abandoned and subside. With their abandoning, he steadies his mind right within, settles it, unifies it, and concentrates it. Just as the thought would occur to a man walking quickly, ‘Why am I walking quickly? Why don’t I walk slowly?’ So he walks slowly. The thought occurs to him, ‘Why am I walking slowly? Why don’t I stand?’ So he stands. The thought occurs to him, ‘Why am I standing? Why don’t I sit down?’ So he sits down. The thought occurs to him, ‘Why am I sitting? Why don’t I lie down?’ So he lies down. In this way, giving up the grosser posture, he takes up the more refined one. In the same way, if evil, unskillful thoughts—connected with desire, aversion or delusion—still arise in the monk while he is paying no mind and paying no attention to those thoughts, he should attend to the relaxing of thought-fabrication with regard to those thoughts. As he is attending to the relaxing of thought-fabrication with regard to those thoughts, those evil, unskillful thoughts are abandoned and subside. With their abandoning, he steadies his mind right within, settles it, unifies it, and concentrates it.
Clenching Teeth (to crush unskillful/evil mind with awareness)

If evil, unskillful thoughts—connected with desire, aversion or delusion—still arise in the monk while he is attending to the relaxing of thought-fabrication with regard to those thoughts, then—with his teeth clenched and his tongue pressed against the roof of his mouth—he should beat down, constrain, and crush his mind with his awareness. As—with his teeth clenched and his tongue pressed against the roof of his mouth—he is beating down, constraining, and crushing his mind with his awareness, those evil, unskillful thoughts are abandoned and subside. With their abandoning, he steadies his mind right within, settles it, unifies it, and concentrates it. Just as a strong man, seizing a weaker man by the head or the throat or the shoulders, would beat him down, constrain, and crush him; in the same way, if evil, unskillful thoughts—connected with desire, aversion or delusion—still arise in the monk while he is attending to the relaxing of thought-fabrication with regard to those thoughts, then—with his teeth clenched and his tongue pressed against the roof of his mouth—he should beat down, constrain, and crush his mind with his awareness. As—with his teeth clenched and his tongue pressed against the roof of his mouth—he is beating down, constraining, and crushing his mind with his awareness, those evil, unskillful thoughts are abandoned and subside. With their abandoning, he steadies his mind right within, settles it, unifies it, and concentrates it.