Actions Options
Prev
Next

Actions Options

Editing Expressions/Actions

On the Actions tab, double-click the regular expression or action that you want to edit. An in-place text editing box will appear in which the text can be edited as you wish. Make sure you press Enter when you are done.

Adding Expressions/Actions

Click the Add Action button to add a regular expression for Klipper to match. Klipper uses Qt™'s QRegExp, which understands most regular expressions as you would use in grep or egrep for instance.

You can add a description of the regular expression type (for example,HTTP URL”) by left clicking in the Description column.

Note

You can find detailed information about the use of QRegExp regular expressions at http://doc.trolltech.com/qregexp.html#details. Note that Klipper does not support the wildcard mode mentioned on this page.

Edit the regular expression as described above. To add a command to execute, right click, select Add Command and edit the command which appears in the tree under the regular expression.

Note that %s in the command line is replaced with the clipboard contents, for example, if your command definition is kedit %s and your clipboard contents are /home/phil/textfile, the command kedit /home/phil/textfile will be run. To include %s in the command line, escape it with a backslash, as so: \%s.

Advanced...

Brings up the Disable Actions for windows of type WM_CLASS dialog.

Some programs, such as Konqueror, use the clipboard internally. If you get unwanted Klipper pop-ups all the time when using a certain application, do the following:

  1. Open the application.

  2. From a terminal, run xprop | grep WM_CLASS and then click on the window of the application you are running.

  3. The first string after the equals sign is the one to enter.

Once the WM_CLASS is added, no more actions will be generated for windows of that application.

Prev
Next
Home


Would you like to comment or contribute an update to this page?
Send feedback to the TDE Development Team