summaryrefslogtreecommitdiffstats
path: root/config.def.h
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2024-06-19 10:32:18 +0200
committerGravatar Christian Hesse <mail@eworm.de>2024-06-19 21:42:47 +0200
commit25448507c67822a3fa3433eebcb35a784bfe5be2 (patch)
treef7ce613c932e47df32751e6acd999fd3635911df /config.def.h
parenta07e7ec5d4e8477f731b12e1226d6775f5622f14 (diff)
downloadmpd-notification-25448507c67822a3fa3433eebcb35a784bfe5be2.tar.gz
mpd-notification-25448507c67822a3fa3433eebcb35a784bfe5be2.tar.zst
support custom format at build time...
... and drop the option for oneline formatting. That can be achived differently now.
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h17
1 files changed, 8 insertions, 9 deletions
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 "<b>%s</b>"
-#define TEXT_PLAY_PAUSE_ARTIST "by <i>%s</i>"
-#define TEXT_PLAY_PAUSE_ALBUM "from <i>%s</i>"
-#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 <b>%t</b>\nby <i>%a</i>\nfrom <i>%A</i>"
+#define TEXT_PAUSE "Paused <b>%t</b>\nby <i>%a</i>\nfrom <i>%A</i>"
+#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 */