Skip to content
This repository has been archived by the owner on Aug 24, 2021. It is now read-only.
/ zmq-notify Public archive
forked from birt/zmq-notify

A ZeroMQ-based command-line notification system

License

Notifications You must be signed in to change notification settings

haploc/zmq-notify

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zmq-notify

A ZeroMQ-based command-line notification system in Python

Introduction

Got notification envy? You're using a CLI most of the time but you see those people running X desktops receiving sweet notifications all the time?

Say no more!

This little program consists of a zmq server (zmq-notifier.py) an two clients, one to send new notifications to the server (zmq-notify-send.py) and one to retrieve a notification from the server. (zmq-notify-get.py)

The server keeps the last 5 notifications in memory and returns a notification when you issue a GET request (through zmq-notify-get.py). Next time you issue a GET the next notification in the list is returned, and so on.

How can I use this?

Start the server in the background:

$ zmq-notifier.py &

Send some notifications to it:

$ zmq-notify-send This is a notification

$ zmq-notify-send "This should work too"

###But where do you display the notifications?

  • in tmux:

    :set -g status-right '#(zmq-notify-get.py)'

    :set -g status-interval 5

About

A ZeroMQ-based command-line notification system

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published