A “drunken thug” who broke a man’s jaw in an unprovoked pub attack has avoided jail after a judge said he could make his life “very unpleasant”.