From 25448507c67822a3fa3433eebcb35a784bfe5be2 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 19 Jun 2024 10:32:18 +0200 Subject: support custom format at build time... ... and drop the option for oneline formatting. That can be achived differently now. --- config.def.h | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) (limited to 'config.def.h') diff --git a/config.def.h b/config.def.h index bc64e88..f262cfe 100644 --- a/config.def.h +++ b/config.def.h @@ -26,15 +26,14 @@ #define ICON_AUDIO_X_GENERIC "audio-x-generic" /* strings used to display notification messages - * TEXT_PLAY_* need to include one string modifier '%s' each. */ -#define TEXT_TOPIC "MPD Notification" -#define TEXT_PLAY_PAUSE_STATE "%s " -#define TEXT_PLAY_PAUSE_TITLE "%s" -#define TEXT_PLAY_PAUSE_ARTIST "by %s" -#define TEXT_PLAY_PAUSE_ALBUM "from %s" -#define TEXT_STOP "Stopped playback" -#define TEXT_NONE "No action received yet." -#define TEXT_UNKNOWN "(unknown)" + * TEXT_PLAY & TEXT_PAUSE can include several specifiers: + * %t for title, %a for artist and %A for album */ +#define TEXT_TOPIC "MPD Notification" +#define TEXT_PLAY "Playing %t\nby %a\nfrom %A" +#define TEXT_PAUSE "Paused %t\nby %a\nfrom %A" +#define TEXT_STOP "Stopped playback" +#define TEXT_NONE "No action received yet" +#define TEXT_UNKNOWN "(unknown)" /* this is a regular expression that has to match image filename used * for artwork */ -- cgit v1.2.3-54-g00ecf