well i wouldnt call it a nightmare but i would just say it was a bad situation

normal dream part

i said something to this girl/ hit her then the whole school was chasing me
then i remembered how when trying to wild you can do math problems to keep your logic going and keep awareness , so i said to myself 2+2= 4 then i saw a lady bring out this red haired baby that was scary for some reason and new that it would be bad if she caught me so then i told myself that if i jumped through the under side of these stairs i would wake up


and i did wake up


so i think i was borderline of getting to a lucid stage with my method of waking up

ive been able to (mainly as a kid) shake my physical body or my head and wake myself up to get out of bad dreams and nightmares

can anyone else do something similar?