http://www.lepton.fr/tools/autocutsel/

Keeps the selection buffer coordinated with the clipboard between OSX and X at least, so if you command-C something in OSX it's available for middle button paste in X, and if you highlight in X it's available for command-V in OSX.