2
<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN"
4
<!ENTITY kappname "&klipper;">
5
<!ENTITY package "kdebase">
6
<!ENTITY % addindex "IGNORE">
7
<!ENTITY % English "INCLUDE" > <!-- change language only here -->
10
<book lang="&language;">
12
<title>The &klipper; Handbook </title>
15
<author>&Philip.Rodrigues; &Philip.Rodrigues.mail;</author>
17
<othercredit role="developer">
18
&Carsten.Pfeiffer; &Carsten.Pfeiffer.mail;
19
<!-- <contrib>Developer</contrib> -->
22
<!-- TRANS:ROLES_OF_TRANSLATORS -->
27
<year>2000-2003</year>
28
<holder>&Philip.Rodrigues;</holder>
31
<legalnotice>&FDLNotice;</legalnotice>
33
<date>2010-01-14</date>
34
<releaseinfo>0.9.7 (&kde; 4.4)</releaseinfo>
37
<para>&klipper; is the &kde; clipboard cut & paste utility.</para>
41
<keyword>KDE</keyword>
42
<keyword>Klipper</keyword>
43
<keyword>kdebase</keyword>
44
<keyword>clipboard</keyword>
48
<chapter id="introduction">
49
<title>Introduction</title>
50
<para>&klipper; is the &kde; clipboard utility. It stores clipboard
51
history, and allows you to link clipboard contents to application
52
actions. Please report any problems or feature requests to <ulink
53
url="http://bugs.kde.org">KDEs bugzilla</ulink> or use the "report bug" feature.</para>
57
<chapter id="using-klipper">
58
<title>Using &klipper;</title>
60
<sect1 id="basic-usage">
61
<title>Basic Usage</title>
63
<screeninfo>The &klipper; icon.</screeninfo>
66
<imagedata fileref="screenshot.png" format="PNG" />
69
<phrase>The &klipper; icon</phrase>
74
<para>To display the clipboard history, click on the &klipper; icon in
75
the &kde; panel, or press <keycombo
76
action="simul">&Ctrl;&Alt;<keycap>V</keycap> </keycombo>. Previous
77
clipboard entries are shown at the top of the popup menu which
78
appears. Selecting one of these copies it to the clipboard, from
79
where it can be pasted into any &kde; or X application as
82
<para>You can search through the clipboard history by opening it
83
(click on &klipper;) and typing your query. The results are updated as
84
you type. In case you're wondering how to use the accelerator keys in
85
the &klipper; menu, just press &Alt; and the accelerator you want. For
86
example, to clear the clipboard history when the &klipper; menu is
87
open, press <keycombo action="simul">&Alt;<keycap>L</keycap>
90
<para>To disable &klipper;, click on its icon and
91
from the menu that appears, select
92
<guimenuitem>Quit</guimenuitem>.</para>
97
<title>Actions</title>
99
<para>&klipper; can perform actions on the contents of the clipboard,
100
based on whether they match a particular regular expression. For
101
example, any clipboard contents starting with <quote>http://</quote> can
102
be passed to Firefox or &konqueror; as &URL;s to open. In addition, if the
103
contents matches a path, similar actions can be performed according to the file's
104
type. E.g, if the path to a <acronym>PDF</acronym> file is copied to the clipboard, the file can be
105
viewed in &okular;.</para>
107
<para>To use this feature, just select a &URL; or path. <!-- starting with slash ?-->
108
If there is a matching regular expression in &klipper;'s
109
list, a menu will appear showing you the programs for your selection.
110
Use the mouse or cursor keys to select a program, and &klipper; will run
111
this program, opening the address pointed to by the
114
<para>If you do not want to perform any actions on the clipboard
115
contents, select <guimenuitem>Disable This Popup</guimenuitem> on the pop-up menu
116
to return to what you were doing before. If you leave the menu, it will
117
disappear, leaving you to continue your work. You can change the time
118
that the menu remains for in the <guilabel>Configure Klipper...</guilabel>
119
dialog, with the option <guilabel>Timeout for action popups</guilabel>
120
under the <guilabel>General</guilabel> page. You can separately disable the
121
file path part using the option <guilabel>Enable MIME-based actions</guilabel> under
122
the <guilabel>Actions</guilabel> page.</para>
124
<para>Actions can be disabled completely by clicking on &klipper; and
125
deselecting <guimenuitem>Actions Enabled</guimenuitem>, or by pressing
126
<keycombo action="simul">&Ctrl;&Alt;<keycap>X</keycap></keycombo>.</para>
128
<para>Clipboard contents which match a regular expression can also be
129
edited before performing an action on them. Select <guimenuitem>Edit
130
contents...</guimenuitem> on the &klipper; pop-up menu, and you can
131
change the clipboard contents in the dialog which appears, before
132
clicking the <guibutton>OK</guibutton> button to run the appropriate
135
<para>Pressing <keycombo
136
action="simul">&Ctrl;&Alt;<keycap>R</keycap></keycombo> shows the pop-up
137
menu to repeat the last action which &klipper; performed.</para>
141
<sect1 id="clipboard-modes">
142
<title>Clipboard/Selection Behavior</title>
144
<sect2 id="clipboard-modes-general">
145
<title>General</title>
147
&klipper; can be used to set the behavior of the clipboard and selection in
151
<note><para>The &X-Window; uses two separate clipboard buffers: the
152
<quote>selection</quote> and the <quote>clipboard</quote>. Text is
153
placed in the selection buffer by simply selecting it, and can be
154
pasted with the middle mouse button. To place text in
155
the clipboard buffer, select it and press
156
<keycombo>&Ctrl;<keycap>X</keycap> </keycombo> or
157
<keycombo>&Ctrl;<keycap>C</keycap> </keycombo>. Text from the
158
clipboard buffer is pasted using <keycombo>&Ctrl;<keycap>V</keycap>
159
</keycombo> or by selecting
160
<menuchoice><guimenu>Edit</guimenu><guimenuitem>Paste</guimenuitem>
161
</menuchoice>.</para>
164
<!-- &klipper; can be used to set the clipboard mode for the whole of &kde;. The
165
first mode will be familiar to &Microsoft; &Windows; and &Mac; users: Text is
166
inserted into the clipboard using an application's cut/copy (or generally
167
<keycombo>&Ctrl;<keycap>X</keycap></keycombo> and
168
<keycombo>&Ctrl;<keycap>C</keycap></keycombo> respectively)
169
function, and the application's paste (or generally
170
<keycombo>&Ctrl;<keycap>V</keycap></keycombo>) function pastes the
171
contents of this clipboard.
174
The second mode will be more familiar to longtime &UNIX; users: Selected text
175
is copied to this clipboard, and clicking the <mousebutton>middle</mousebutton>
176
mouse button pastes the
177
contents of this clipboard.
181
<sect2 id="changing-clipboard-modes">
182
<title>Changing Clipboard/Selection Behavior</title>
184
<!-- this has changed in kde 4.4-->
185
In order to change clipboard/selection behavior, select
186
<guimenuitem>Configure &klipper;...</guimenuitem> from the &klipper; pop-up menu,
187
and in the dialog box that appears, select the
188
<guilabel>General</guilabel> page. Unchecking <guilabel>Synchronize contents of the clipboard and the
189
selection</guilabel> makes the clipboard and selection function as completely
190
separate buffers as described above. With this option set, the option
191
<guilabel>Ignore selection</guilabel> will prevent &klipper; from
192
including the contents of the selection in its clipboard history and from
193
performing actions on the contents of the selection. Selecting
194
<guilabel>Synchronize contents of the clipboard and the selection</guilabel>
195
causes the clipboard and selection buffers to always be the same, meaning that
196
text in the selection can be pasted with either the
197
<mousebutton>middle</mousebutton> mouse button or the key combination <keycombo>&Ctrl;<keycap>V</keycap>
198
</keycombo>, and similarly for text in the clipboard buffer.
202
<guilabel>Synchronize contents of the clipboard and the
203
selection</guilabel> check box determines the clipboard mode. If the box is
204
selected, the clipboard functions in the &UNIX; mode; if not, the
205
&Windows;/&Mac; mode is used. -->
214
<chapter id="preferences">
215
<title>Configuring &klipper;</title>
217
<sect1 id="viewing-options">
219
<title>Viewing the Configuration Dialog</title>
221
<para>To view or change &klipper;'s settings, open the &klipper;
222
pop-up menu, and select <guimenuitem>Configure Klipper...</guimenuitem>. The &klipper;
223
configuration dialog will appear. Its contents are described
228
<sect1 id="general-page">
229
<title>General Options</title>
234
<term><guilabel>Popup menu at mouse-cursor position</guilabel></term>
235
<listitem><para>Make the &klipper; popup menus appear at the position of
236
the mouse cursor, instead of their default position (in the &kde; Panel).
237
Useful if you use the mouse more than the keyboard.</para></listitem>
242
<term><guilabel>Save clipboard contents on
243
exit</guilabel></term> <listitem><para>If this option is on, the clipboard
244
history will be saved when &klipper; exits, allowing you to use it next time
245
&klipper; starts.</para>
250
<term><guilabel>Prevent empty clipboard</guilabel></term>
251
<listitem><para>If selected, the clipboard will never be empty: &klipper; will
252
insert the most recent item from the clipboard history into the clipboard
253
instead of allowing it to be empty.</para></listitem>
257
<term><guilabel>Replay actions on an item selected from
258
history</guilabel></term>
259
<listitem><para>If this is switched on, selecting an item from the history
260
causes &klipper; to display the actions pop-up on that item, if
266
<term><guilabel>Remove white space when executing actions</guilabel></term>
267
<listitem><para>If selected, any white space (spaces, tabs, &etc;) at the
268
beginning and end of the clipboard contents will be removed before passing the
269
clipboard contents to an application. This is useful, for example, if the
270
clipboard contains a &URL; with spaces which, if opened by a web browser, would
271
cause an error.</para>
276
<term><guilabel>Ignore images</guilabel></term>
277
<listitem><para>When an area of the screen is selected with mouse or keyboard,
278
this is called the <quote>selection</quote>. If this option is selected, only text
279
selections are stored in the history, while images and other selections are not.
285
<term><guilabel>Ignore selection</guilabel></term>
286
<listitem><para>Sets the clipboard mode. This option will prevent &klipper; from
287
including the contents of the selection in its clipboard history and from
288
performing actions on the contents of the selection. See <xref linkend="clipboard-modes"/>.
294
<term><guilabel>Text selection only</guilabel></term>
295
<listitem><para>When an area of the screen is selected with mouse or keyboard, this is
296
called the <quote>selection</quote>. If this option is selected, only text selections
297
are stored in the history, while images and other selections are not.
298
See <xref linkend="clipboard-modes"/>.
304
<term><guilabel>Synchronize contents of the clipboard and the
305
selection</guilabel></term>
306
<listitem><para>Sets the clipboard mode.
307
When an area of the screen is selected with mouse or keyboard, this is
308
called the <quote>selection</quote>. If this option is selected, the selection and the
309
clipboard is kept the same, so that anything in the selection is immediately
310
"available for pasting elsewhere using any method, including the traditional
311
middle mouse button. Otherwise, the selection is recorded in the clipboard
312
history, but the selection can only be pasted using the middle mouse button.
313
Also see the <guilabel>Ignore selection</guilabel> option.
314
See <xref linkend="clipboard-modes"/>.
320
<term><guilabel>Timeout for Action pop-ups</guilabel></term>
321
<listitem><para>Set the time that a popup menu will remain for if you do
322
nothing with it.</para></listitem>
325
<varlistentry><term><guilabel>Clipboard history
326
size</guilabel></term>
327
<listitem><para>Sets the number of items that are stored
328
in the clipboard history.</para></listitem>
335
<sect1 id="actions-page">
336
<title>Actions Options</title>
340
<term>Editing Expressions/Actions</term>
341
<listitem><para>On the <guilabel>Actions</guilabel> page, double-click
342
the regular expression or action that you want to edit or select it and
343
press the <guibutton>Edit Action</guibutton> button. A dialog will appear in which the
344
expression text can be edited as you wish.</para></listitem>
348
<term>Adding Expressions/Actions</term>
349
<listitem><para>Click the <guibutton>Add Action</guibutton> button
350
to add a regular expression for &klipper; to match. &klipper; uses
351
&Qt;'s <classname>QRegExp</classname>, which understands most regular
352
expressions as you would use in <application>grep</application> or
353
<application>egrep</application> for instance.</para>
354
<para>You can add a description of the regular expression type (⪚
355
<quote>HTTP URL</quote>) by <mousebutton>left</mousebutton> clicking in the
356
<guilabel>Description</guilabel> column.</para>
358
<note><para>You can find detailed information about the use of
359
<classname>QRegExp</classname> regular expressions at <ulink
360
url="http://doc.trolltech.com/qregexp.html#details">http://doc.trolltech.com/qregexp.html#details</ulink>.
361
Note that &klipper; does not support the wildcard mode mentioned on this
364
<para>Edit the regular expression as described above. To add a command
365
to execute, click <guimenuitem>Add Command</guimenuitem> and edit the command
366
in an in-place text editing box. Double-clicking on a command allows you to edit it.</para>
368
<para>Note that <token>%s</token> in the command line is replaced with
369
the clipboard contents, ⪚ if your command definition is
370
<userinput><command>kwrite</command> <token>%s</token></userinput> and
371
your clipboard contents are <filename>/home/phil/textfile</filename>,
372
the command <userinput><command>kwrite</command>
373
<filename>/home/phil/textfile</filename></userinput> will be run. To
374
include <token>%s</token> in the command line, escape it with a
375
backslash, as so: <userinput>\%s</userinput>.</para></listitem>
378
<varlistentry><term><guibutton>Advanced</guibutton></term>
379
<listitem><para>Brings up the <guilabel>Disable Actions for windows of type
380
WM_CLASS</guilabel> dialog.</para>
381
<para>Some programs, such as &konqueror;,
382
use the clipboard internally. If you get unwanted &klipper; pop-ups all the time
383
when using a certain application, do the following:</para>
386
<listitem><para>Open the application.</para></listitem>
387
<listitem><para>From a terminal, run <userinput><command>xprop</command>
388
| <command>grep</command> <parameter>WM_CLASS</parameter></userinput>
389
and then click on the window of the application you are
390
running.</para></listitem>
391
<listitem><para>The first string after the equals sign is the one to
392
enter.</para></listitem>
395
<para>Once the WM_CLASS is added, no more actions will be generated for
396
windows of that application.</para>
403
<sect1 id="shortcuts-page">
404
<title>Shortcuts Options</title>
406
<para>The shortcuts page allows you to change the keyboard shortcuts
407
which are used to access &klipper; functions. You can change the
408
shortcut to one of three things:</para>
412
<term><guilabel>None</guilabel></term>
413
<listitem><para>The selected action cannot be accessed directly from the
414
keyboard</para></listitem>
417
<term><guilabel>Default</guilabel></term>
418
<listitem><para>The selected action uses &klipper;'s default key. These are the
419
shortcuts referred to in this manual.</para></listitem>
422
<term><guilabel>Custom</guilabel></term>
423
<listitem><para>The selected action is assigned to the keys you choose.</para>
424
<para>To choose a custom key for the action you have selected, click on
425
<guilabel>Custom</guilabel> and then <guilabel>None</guilabel>.
426
Now type the desired key combination on your keyboard, as in any &kde; application.
434
<chapter id="credits">
435
<title>Credits and License</title>
441
Program copyright 1998 &Andrew.Stanley-Jones; <email>asj@cban.com</email>
444
Program copyright 1998-2000 &Carsten.Pfeiffer; &Carsten.Pfeiffer.mail;</para>
446
Currently maintained by Esben Mose Hansen. See <ulink
447
url="http://mosehansen.dk/about">http://mosehansen.dk/about</ulink>
452
Documentation copyright 2000-2003, 2005 &Philip.Rodrigues;
453
&Philip.Rodrigues.mail;</para>
455
<!-- TRANS:CREDIT_FOR_TRANSLATORS -->
461
<appendix id="installation">
462
<title>Installation</title>
464
<sect1 id="getting-klipper">
465
<title>How to obtain &klipper;</title>
467
&install.intro.documentation;
471
<sect1 id="compilation">
472
<title>Compilation and Installation</title>
473
&install.compile.documentation;
476
<screeninfo>&klipper; icon</screeninfo>
479
<imagedata fileref="screenshot.png" format="PNG"/>
482
<phrase>Screenshot</phrase>
488
<para>To remove &klipper; from your panel, select <guimenuitem>Remove
489
Klipper</guimenuitem> from the context menu (accessed by left-clicking the
490
small handle to the left of the &klipper; icon).</para>
493
<para>To disable this, simply remove the file
494
<filename>$<envar>KDEDIR</envar>/share/autostart/klipper.desktop</filename>
495
or create a file <filename>$<envar>HOME</envar>/share/autostart/klipper.desktop</filename>
496
with the following contents:
503
The latter will keep the system installation intact and only prevent
504
&klipper; being started for you, without affecting other users.
510
&documentation.index;
516
sgml-minimize-attributes: nil
517
sgml-general-insert-case: lower