Fetching details from the dictionary...
nodding off (while sitting); dozing
授業じゅぎょう中ちゅうに居眠りいねむりしてしまった。
I dozed off during class.
疲れつかれていたので電車でんしゃで居眠りいねむりをしてしまう。
I was tired and dozed on the train.
居眠りいねむり運転うんてんはとても危険きけんなので絶対ぜったいにしない。
Drowsy driving is very dangerous.