2012-01-10 15:35:53 +00:00
|
|
|
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:
|
2012-01-10 15:42:35 +00:00
|
|
|
image:../../images/simple_notify_example.png["Simple notify example",
|
2012-01-10 15:35:53 +00:00
|
|
|
title="Simple notify example"]
|
2012-05-13 16:57:58 +00:00
|
|
|
|
|
|
|
NOTE: If you set the _exec_remote_ option to _true_ into the
|
|
|
|
link:../configure.html[main configuration file], the command will be executed
|
|
|
|
remotely (as explained in the link:link.html[/link help]).
|