libxmp / libxmp/xmp-cli

Add libnotify notifications on song change?

Open
#8 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C
Stars
84
Forks
22
PR merge metrics
No merged PRs in 30d

Description

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();
}

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the song-change handling in xmp-cli and the code that populates mi->mod->name. Review the libnotify example in the issue and determine how that dependency fits the command-line player. Done means a libnotify notification appears when the song changes and identifies the module being played.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.