2013-04-12 21:34:11 +00:00
|
|
|
Plugins
|
|
|
|
=======
|
|
|
|
|
|
|
|
Starting from the 0.7.5 version, poezio supports plugins.
|
|
|
|
Here is a quick howto and a plugin index.
|
|
|
|
|
|
|
|
|
|
|
|
Setting up plugins
|
|
|
|
------------------
|
|
|
|
|
|
|
|
Poezio seeks the plugins in the :file:`~/.local/share/poezio/plugins/` dir (more
|
|
|
|
generally, the :file:`$XDG_DATA_HOME/poezio/plugins/` dir), but that can be changed
|
|
|
|
by setting the :term:`plugins_dir` option to the directory where you want to
|
|
|
|
put your plugins.
|
|
|
|
|
|
|
|
This means that if you want to use a plugin, you have to copy it (the .py file or the directory) into :term:`plugins_dir`.
|
|
|
|
|
|
|
|
|
|
|
|
Plugin autoload
|
|
|
|
---------------
|
|
|
|
|
|
|
|
Use the :term:`plugins_autoload` optionto select which plugins should be
|
|
|
|
loaded on startup. The value is a list of plugin names separated by colons,
|
|
|
|
e.g.
|
|
|
|
|
|
|
|
.. code-block:: ini
|
|
|
|
|
|
|
|
plugins_autoload = gpg:tell:exec
|
|
|
|
|
2013-04-13 20:33:06 +00:00
|
|
|
.. _plugin-configuration:
|
|
|
|
|
2013-04-12 21:34:11 +00:00
|
|
|
Plugin configuration
|
|
|
|
--------------------
|
|
|
|
|
|
|
|
Most plugins will manage their configuration internally, and you do not (and
|
|
|
|
should not) have to edit it, but some (e.g. mpd_client or gpg) require manual
|
|
|
|
editing (the :term:`/set` command can be used, but it is not pleasant to set
|
|
|
|
multiple values with it).
|
|
|
|
|
|
|
|
The plugin configuration directory is located in :file:`~/.config/poezio/plugins/`
|
|
|
|
(or :file:`$XDG_CONFIG_HOME/poezio/plugins/`) and the file related to a specific
|
|
|
|
plugin is named :file:`plugin_name.cfg`. The configuration options should usually be
|
|
|
|
inside a section named after the plugin (sections are delimited with ``[]``).
|
|
|
|
|
|
|
|
.. code-block:: ini
|
|
|
|
|
|
|
|
[plugin_name]
|
|
|
|
key = value
|
|
|
|
other_key = other_value
|
|
|
|
|
|
|
|
Plugin index
|
|
|
|
------------
|
|
|
|
|
|
|
|
.. glossary::
|
2013-04-13 20:33:06 +00:00
|
|
|
:sorted:
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Admin
|
|
|
|
:ref:`Documentation <admin-plugin>`
|
|
|
|
|
|
|
|
Creates convenient aliases for MUC administration.
|
|
|
|
|
|
|
|
Alias
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <alias-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Allows you to create your own aliases.
|
|
|
|
|
|
|
|
Amsg
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <amsg-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Allows a message to be broadcasted on all the rooms your are in.
|
|
|
|
Caution: do not overuse.
|
|
|
|
|
|
|
|
Day Change
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <daychange-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Logs the day change inside the buffers, to keep track of the days when
|
|
|
|
backlogging.
|
|
|
|
|
|
|
|
Display corrections
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <displaycorrections-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Lists old versions of a corrected message.
|
|
|
|
|
|
|
|
Exec
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <exec-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Runs a system command an optionally sends the output as a message.
|
|
|
|
|
|
|
|
Figlet
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <figlet-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Ascii-art writing (requires the ``figlet`` package on your system).
|
|
|
|
|
|
|
|
GPG
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <gpg-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Allows encrypted exchanges and presence signing using GnuPG.
|
|
|
|
|
|
|
|
IQ Show
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <iqshow-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Shows the received IQs, for debugging purposes.
|
|
|
|
|
|
|
|
Link
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <link-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Opens links in a web browser, locally or remotely using a FIFO and SSH.
|
|
|
|
|
|
|
|
MPD Client
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <mpdclient-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Sends the current song (and optionally the progress inside the song) to
|
|
|
|
the current (chat) tab.
|
|
|
|
|
|
|
|
OTR
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <otr-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Allows encrypted and deniable exchanges using OTR.
|
|
|
|
|
|
|
|
PacoKick
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <pacokick-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Kicks a random user in the room.
|
|
|
|
|
|
|
|
Ping
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <ping-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Sends a ping probe to an entity (XEP-0199)
|
|
|
|
|
|
|
|
Quote
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <quote-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Adds a /quote command to quote a message at HH:MM:SS and put it in the
|
|
|
|
input (to prevent painful copy/pastes).
|
|
|
|
|
|
|
|
Rainbow
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <rainbow-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Sends your messages in rainbow colors using XHTML-IM.
|
|
|
|
|
|
|
|
Reminder
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <reminder-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Reminds you to do something every now and then.
|
|
|
|
|
|
|
|
Screen Detach
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <screendetach-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Changes your status to _away_ if the screen poezio is in is detached.
|
|
|
|
|
|
|
|
Simple notify
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <simplenotify-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Sends a notification with a command of your choice on (non-MUC) messages.
|
|
|
|
|
2013-05-06 19:42:53 +00:00
|
|
|
Spam
|
|
|
|
:ref:`Documentation <spam-plugin>`
|
|
|
|
|
|
|
|
Adds a subtle little advertising in your messages.
|
|
|
|
|
2013-04-12 21:34:11 +00:00
|
|
|
Status
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <status-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Adds convenient aliases to /status (/away, etc).
|
|
|
|
|
|
|
|
Tell
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <tell-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Tells a message to a nick when he connects to a MUC.
|
|
|
|
|
|
|
|
Uptime
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <uptime-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Gets the uptime of a XMPP server or a component.
|
|
|
|
|
|
|
|
Replace
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <replace-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Replace some patterns in your messages.
|
|
|
|
|
|
|
|
Time Marker
|
2013-04-13 20:33:06 +00:00
|
|
|
:ref:`Documentation <timemarker-plugin>`
|
2013-04-12 21:34:11 +00:00
|
|
|
|
|
|
|
Display the time between two messages.
|
|
|
|
|
2013-04-13 20:33:06 +00:00
|
|
|
Revstr
|
|
|
|
:ref:`Documentation <revstr-plugin>`
|
|
|
|
|
|
|
|
Reverse everything you say.
|
|
|
|
|
|
|
|
Shuffle
|
|
|
|
:ref:`Documentation <shuffle-plugin>`
|
|
|
|
|
|
|
|
Shuffle everything you say.
|
|
|
|
|
|
|
|
Double
|
|
|
|
:ref:`Documentation <double-plugin>`
|
|
|
|
|
|
|
|
Double the first word of each sentence.
|
|
|
|
|
|
|
|
.. toctree::
|
|
|
|
:hidden:
|
|
|
|
|
|
|
|
admin
|
|
|
|
alias
|
|
|
|
amsg
|
|
|
|
day_change
|
|
|
|
display_corrections
|
|
|
|
exec
|
|
|
|
figlet
|
|
|
|
gpg
|
|
|
|
link
|
|
|
|
mpd_client
|
|
|
|
otr
|
|
|
|
pacokick
|
|
|
|
ping
|
|
|
|
quote
|
|
|
|
rainbow
|
|
|
|
reminder
|
|
|
|
replace
|
|
|
|
screen_detach
|
|
|
|
send_delayed
|
|
|
|
simple_notify
|
2013-05-06 19:42:53 +00:00
|
|
|
spam
|
2013-04-13 20:33:06 +00:00
|
|
|
status
|
|
|
|
tell
|
|
|
|
time_marker
|
|
|
|
uptime
|
|
|
|
revstr
|
|
|
|
double
|
|
|
|
shuffle
|
|
|
|
iq_show
|