X - use clipboard by default

Glynn Clements glynn at gclements.plus.com
Tue Apr 22 06:19:41 PDT 2008


Pawel K wrote:

> I would like an Xorg to use the clipboard instead of primary selection
> when copying text with mouse.
> Is it possible to configure X globally
> or each application requires its own clipboard configuration ?
> 
> The most important for me is to force xterm to use clipboard by
> default.
> I mostly use the following X applications:
> xpdf, xchm, oowriter, wine, firefox.
> 
> Is there a generic way to configure them to use clipboard by default ?

No. Cut and paste is handled by the toolkit, not by X itself.

For XTerm, you can use the selectToClipboard resource, e.g.:

	XTerm.vt100.selectToClipboard: true

For Athena-based programs (e.g. xpdf), you can override the
translations, e.g.:

*Text.translations:	#override	\n\
~Shift ~Ctrl ~Meta <Btn2Up>:	insert-selection(CLIPBOARD, PRIMARY, CUT_BUFFER0)

-- 
Glynn Clements <glynn at gclements.plus.com>



More information about the xorg mailing list