~ubuntu-branches/debian/sid/xfce4-clipman-plugin/sid

« back to all changes in this revision

Viewing changes to panel-plugin/xfce4-clipman-actions.xml.in

  • Committer: Bazaar Package Importer
  • Author(s): Yves-Alexis Perez
  • Date: 2009-04-21 07:48:11 UTC
  • mfrom: (1.2.6 upstream)
  • Revision ID: james.westby@ubuntu.com-20090421074811-ro4ri3jy2lhbhcij
Tags: 2:1.0.0-1
* New upstream release.
  + ship a shortcutable binary to popup plugin.               closes: #405556
* debian/control:
  - move package to xfce section.
  - bump build-deps for Xfce 4.6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0" encoding="UTF-8"?>
 
2
<!DOCTYPE actions [
 
3
        <!ELEMENT actions (action+)>
 
4
        <!ELEMENT action (name,regex,commands)>
 
5
        <!ELEMENT commands (command+)>
 
6
        <!ELEMENT command (name,exec)>
 
7
 
 
8
        <!ELEMENT name (#PCDATA)>
 
9
        <!ATTLIST name xml:lang CDATA #IMPLIED>
 
10
        <!ELEMENT regex (#PCDATA)>
 
11
        <!ELEMENT exec (#PCDATA)>
 
12
]>
 
13
<!--
 
14
  Copyright (c) 2009 Mike Massonnet <mmassonnet@xfce.org>
 
15
 
 
16
  Default Clipman actions configuration file, which gets installed system-wide.
 
17
  This should act more like an example, and is therefore kept simple.
 
18
-->
 
19
<actions>
 
20
        <action>
 
21
                <_name>Image</_name>
 
22
                <regex>(http|ftp).+\.(jpg|png|gif)</regex>
 
23
                <commands>
 
24
                        <command>
 
25
                                <_name>View with Ristretto</_name>
 
26
                                <exec>ristretto &quot;\0&quot;</exec>
 
27
                        </command>
 
28
                        <command>
 
29
                                <_name>Edit with Gimp</_name>
 
30
                                <exec>gimp &quot;\0&quot;</exec>
 
31
                        </command>
 
32
                </commands>
 
33
        </action>
 
34
        <action>
 
35
                <_name>Bugz</_name>
 
36
                <regex>bug ?#?([0-9]+)</regex>
 
37
                <commands>
 
38
                        <command>
 
39
                                <_name>Xfce Bug</_name>
 
40
                                <exec>exo-open http://bugzilla.xfce.org/show_bug.cgi?id=\1</exec>
 
41
                        </command>
 
42
                        <command>
 
43
                                <_name>GNOME Bug</_name>
 
44
                                <exec>exo-open http://bugzilla.gnome.org/show_bug.cgi?id=\1</exec>
 
45
                        </command>
 
46
                </commands>
 
47
        </action>
 
48
        <action>
 
49
                <_name>Long URL</_name>
 
50
                <regex>http://.{120}[^ ]+</regex>
 
51
                <commands>
 
52
                        <command>
 
53
                                <_name>Shrink the URL</_name>
 
54
                                <exec>exo-open http://tinyurl.com/create.php?url=\0</exec>
 
55
                        </command>
 
56
                </commands>
 
57
        </action>
 
58
</actions>