A murderer has mockingly agreed with a Queensland judge he has no prospects for rehabilitation while being sentenced to life in jail.

A Queensland prisoner mocked a judge and swore at a prosecutor as he was sentenced to life for bashing an inmate to death with a chin-up bar.

Gregory George Glebow, 39, treated Supreme Court judge David Boddice with contempt as he was given a 30-year non-parole punishment for murdering Leonard Gordon on October 9, 2012.

Justice Boddice said Glebow showed no remorse for hitting the 22-year-old inmate in the head in the exercise yard of Maryborough Correctional Centre.

Gordon, who had been jailed for a non-violent crime, had only two days before he was due for release.

The judge described the killing of a slightly built, unarmed victim with a metal pole as a “cold, calculated act of callousness”.

From the dock, Glebow shouted: “He wasn’t a 10-year-old boy who got raped and murdered.”

Justice Boddice said Glebow had no prospects for rehabilitation, to which he replied: “That’s exactly right, your honour.”

Crown prosecutor Ben Power told the court Glebow had offered no motive for the murder, which was captured on CCTV.

He also cited victim impact statements from Gordon’s younger sister, who was 11 when her brother died, and his mother, who had battled mental health problems.

This prompted Glebow to shout expletives at Mr Power.

“If I had to, I’d do it again, you f***ing grub,” he said.

Glebow also invoked God as he accused the prosecution of making up a story for the media despite having pleaded guilty.

“I gladly plead guilty,” he said ahead of his sentence.

“There’s only one thing I’d like to say: next time, your honour, can you take off that silly wig off your head.”

Glebow was already serving a life sentence for bashing to death a man in Brisbane in March 2000, who members of Glebow’s drunken social group targeted because they thought he was gay.

Michael Christopher Greer, a 26-year-old father with a young daughter, died nine months after he was bashed and kicked in the attack.

In 2007, Glebow was given a nine-year sentence for assaulting another inmate.

In sentencing Glebow for the 2012 prison murder, Justice Boddice took into account his guilty plea.