Small, simple notification system.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
icon.png
notify
notify_daemon

README.md

PyNotify

A python based super simplified notification system. This project is designed to give basic notification capabilities with minimal requirements.

Requirements

* Python (Only tested with 2.4, others may work)
* GTK+ >= 2.x
* PyGTK >= 2.10

Usage

Server

By default the server runs on port 2199. Start the server by running ./notify_daemon

Send messages

To send a notification run ./notify <message to display>

Scripting

This program can be used to alert you when a command completes. You can even have different messages for success and failure.

Create an alias like the following:

alias all_done="./notify Operation Successful Message || ./notify Operation Failed Message"

Now you can run a long command and add this to the and to get feedback when it is done.

command_that_takes_a_while && alldone

RPC vs. UDS

PyNotify can run in two modes. In RPC mode, it listens on a tcp port for connections. This is bound to localhost by default but can easily be changed to allow other machines to send notifications to the machine running the server. This can obviously be an issue if your co-workers like to spam you. For this reason, PyNotify runs in UDS mode by default. In this mode, it creates a file in your home directory and only users with write access to that file (ie you) can send notifications. The default file for this mode is ~/.pynotify.sock.

Issues

Please report any bugs to the issue tracker.