Probably not worthy of the word "composing" but I'll just be playing around and hit something that sounds nice, and then I'll trip with it for awhile, trying different chords and notes along side of it. Sometimes a lyric even comes to me.
The inspiring part comes from the fact that I don't feel like a total guitar loser when I manage to come up with something that I think sounds good. So then I'm inspired to keep playing!