A man claimed the reason he staged a dirty protest at Dunfermline Police Station was to keep warm.
Louis Curtis, 58, smeared himself with excrement after being arrested for causing a disturbance at a homeless hostel.
He had been due to stand trial last week, but the hearing was postponed after he refused to leave the court cells. When he returned to Dunfermline Sheriff Court he was found guilty of two charges.
He had denied that on January 24 at the hostel he behaved in a threatening and abusive manner by shouting and swearing, throwing furniture and household items out of his flat window, then at the police station he smeared excrement on his hands and a wall.
He was also found guilty of wilfully or recklessly destroying or damaging property at the hostel, damaging a fridge and bathroom unit by snapping a gas pipe and throwing a set of drawers.
Curtis admitted throwing his belongings out of a window at the hostel and barricading himself in his room but claimed this had happened after he had been assaulted by another resident.
Representing himself in court, Curtis said: “At 3.15 in the morning I was tiptoeing about getting my breakfast of organic muesli and soya milk.”
He said his neighbour “jumped at me in the dark”.
Curtis was arrested and in a police cell he took off his custody suit and sat on it with a blanket over his head.
He claimed the reason he put excrement on his hands and genitals was to keep warm.
Depute fiscal Dev Kapadia said the cost of restoring the cell to a usable state was £100.
Curtis was jailed for eight months.