summaryrefslogtreecommitdiffstats
path: root/mpd-notification.c
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2013-07-25 09:13:15 +0200
committerGravatar Christian Hesse <mail@eworm.de>2013-07-25 09:13:15 +0200
commit389c123beb48dab2c8a179b86e4f697b6bbd6c4d (patch)
treece78363bdd6a0c297b6c6d3a8de0ebc7e0bd55fe /mpd-notification.c
parent376da7534b1065febfd878a40a14ba6d981ea35b (diff)
downloadmpd-notification-389c123beb48dab2c8a179b86e4f697b6bbd6c4d.tar.gz
mpd-notification-389c123beb48dab2c8a179b86e4f697b6bbd6c4d.tar.zst
introduce config.h
Diffstat (limited to 'mpd-notification.c')
-rw-r--r--mpd-notification.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/mpd-notification.c b/mpd-notification.c
index 6baa627..6ce248b 100644
--- a/mpd-notification.c
+++ b/mpd-notification.c
@@ -14,6 +14,8 @@
#include <stdlib.h>
#include <string.h>
+#include "config.h"
+
#define PROGNAME "mpd-notification"
#define NOTIFICATION_TIMEOUT 10000
@@ -21,14 +23,6 @@
#define DEBUG 0
#endif
-#define ICON_SOUND "sound"
-
-#define TEXT_TOPIC "MPD Notification"
-#define TEXT_PLAY "Playing <b>%s</b>\nby <i>%s</i>\nfrom <i>%s</i>"
-#define TEXT_PAUSE "Paused playback"
-#define TEXT_STOP "Stopped playback"
-#define TEXT_UNKNOWN "(unknown)"
-
int main(int argc, char ** argv) {
char * album = NULL, * artist = NULL, * notifystr = NULL, * title = NULL;
GError * error = NULL;