From 83abd9f19666eea8edfcd30f80fbd08388bc8816 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 10 Jan 2012 16:30:59 +0100 Subject: Add a simple_notify plugin And also fix some issues, like the split of the exec_command arguments. And the doc for the plugin, too. --- doc/en/plugins/gpg.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/en/plugins') diff --git a/doc/en/plugins/gpg.txt b/doc/en/plugins/gpg.txt index 70a6fd15..a39b68a4 100644 --- a/doc/en/plugins/gpg.txt +++ b/doc/en/plugins/gpg.txt @@ -33,7 +33,7 @@ You need to create a plugin configuration file. Create a file named _gpg.cfg_ into your plugins configuration directory (_~/.config/poezio/plugins_ by default), and fill it like this: -[source,python] +[source,conf] --------------------------------------------------------------------- [gpg] keyid = 091F9C78 -- cgit v1.2.3 From fa6a283b5fd8fbc5f51da7715fc546aefc2ec8f6 Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 10 Jan 2012 16:35:53 +0100 Subject: And the simple_notify documentation --- doc/en/plugins/simple_notify.txt | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 doc/en/plugins/simple_notify.txt (limited to 'doc/en/plugins') diff --git a/doc/en/plugins/simple_notify.txt b/doc/en/plugins/simple_notify.txt new file mode 100644 index 00000000..63b7fe93 --- /dev/null +++ b/doc/en/plugins/simple_notify.txt @@ -0,0 +1,26 @@ +Simple Notify +============= + +This plugin lets you execute a command, to notify you from new important +messages. + +Installation and configuration +------------------------------ + +You need to create a plugin configuration file. Create a file named _simple_notify.cfg_ +into your plugins configuration directory (_~/.config/poezio/plugins_ by +default), and fill it like this: + +[source,conf] +--------------------------------------------------------------------- +[simple_notify] +command = notify-send -i /path/to/poezio/data/poezio_80.png "New message from %(from)s" "%(body)s" +--------------------------------------------------------------------- + +You can put any command, instead of this one. You can also use the +special keywords _%(from)s_ and _%(body)s_ that will be replaced +directly in the command line by the author of the message, and the body. + +The example shown above will display something like this: +image::../../images/simple_notify_example.png["Simple notify example", +title="Simple notify example"] -- cgit v1.2.3 From 08bf7647439793b7c87c521efe0a462be85cbbcc Mon Sep 17 00:00:00 2001 From: Florent Le Coz Date: Tue, 10 Jan 2012 16:42:35 +0100 Subject: Fix image: syntax in the doc --- doc/en/plugins/simple_notify.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/en/plugins') diff --git a/doc/en/plugins/simple_notify.txt b/doc/en/plugins/simple_notify.txt index 63b7fe93..f9ec0f74 100644 --- a/doc/en/plugins/simple_notify.txt +++ b/doc/en/plugins/simple_notify.txt @@ -22,5 +22,5 @@ special keywords _%(from)s_ and _%(body)s_ that will be replaced directly in the command line by the author of the message, and the body. The example shown above will display something like this: -image::../../images/simple_notify_example.png["Simple notify example", +image:../../images/simple_notify_example.png["Simple notify example", title="Simple notify example"] -- cgit v1.2.3