diff options
Diffstat (limited to 'config.def.h')
-rw-r--r-- | config.def.h | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/config.def.h b/config.def.h index bc64e88..e7a1264 100644 --- a/config.def.h +++ b/config.def.h @@ -1,5 +1,5 @@ /* - * (C) 2011-2024 by Christian Hesse <mail@eworm.de> + * (C) 2011-2025 by Christian Hesse <mail@eworm.de> * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -26,19 +26,18 @@ #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, %A for album and %d for duration */ +#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 */ -#define REGEX_ARTWORK "\\(folder\\|cover\\)\\.\\(jpg\\|png\\)" +#define REGEX_ARTWORK "\\(folder\\|cover\\)\\.\\(avif\\|jpg\\|png\\|webp\\)" /* how to connect to mpd host ? * MPD_HOST is the server's host name, IP address or Unix socket path. If the |