libxmp / xmp-cli

Command-line mod player using libxmp
GNU General Public License v2.0
75 stars 22 forks source link

Add libnotify notifications on song change? #8

Open helkaluin opened 8 years ago

helkaluin commented 8 years ago

Would this be a possible addition?

It'll be great if I could actually know which module is being played (I normally call xmp on a non-discriminatory find in my modules library). Given you already have the necessary information store in mi->mod->name and such, adding this shouldn't be that hard right?

Example code for libnotify in C:

#include <libnotify/notify.h>
void main () {
    notify_init ("Hello world!");
    NotifyNotification * Hello = notify_notification_new ("Hello world", "This is an example notification.", "dialog-information");
    notify_notification_show (Hello, NULL);
    g_object_unref(G_OBJECT(Hello));
    notify_uninit();
}