a simple notifications mechanism intended for mcabber with awesome wm.
These setof files should be sufficient for the basic notifications system.
- awesome window manager
- naughty notifications libs
- espeak for speech to text (optional)
├── fb-events.sh - takes care of events generated from facebook chat ├── fb-mcabberrc - mcabber configuration file for facebook chat ├── gtalk-events.sh - takes care of events generated from gmail chat ├── mcabberrc - mcabber configuration for gtalk ├── README.md - this file ├── speak.sh - speaks out the give text parameter using tts engine ├── update-fb.sh - script to update facebook friends and pics └── update-gtalk.sh - script to update gtalk friends and pics
mcabber generates events based on its configuration, and each of the specified
events can be captured by specifying the events scripts which receives the
parameters in a predefined format and these parameters can be used to perform
any user required actions.
These events scripts capture the mail ids (for gtalk) and facebook friend ids
for (facebook chat) along with the MSG and the type of event. Based on the
type of the event, custom notifications can be provided.
For each of the id and based on the content of the MSG (if it contains smilies
or not), corresponding images are fetched. This image, with the ID and the MSG
is passed on to the awesome client to notify the user.
The awesome client calls a notify function specified in the awesome rc file,
which creates a custom notification using naughty, which intern uses
libnotify.
All the pictures are organized as below
.mcabber
└── pictures
├── facebook
│ ├── user1
│ └── user2
│ ...
│
└── gtalk
├── user1
└── user2
...
for every user, there is a profile pic which is used as a default pic if there
are no other pics or if there is no smiley in the MSG.
the user can update a pic corresponding to the available smiley for each of
friends specified in the friends list. This scripts may be run manually once
in a while or added as a cron job to be updated.