aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xmpdnotify/run10
1 files changed, 10 insertions, 0 deletions
diff --git a/mpdnotify/run b/mpdnotify/run
new file mode 100755
index 0000000..c8eca40
--- /dev/null
+++ b/mpdnotify/run
@@ -0,0 +1,10 @@
+#!/bin/sh
+# make sure mpd is running
+sv check "$HOME/.local/share/service/mpd" > /dev/null || exit 1
+
+# set DISPLAY environment variable so notify send doesn't complain
+export DISPLAY=:0
+
+while
+ notify-send -r 18 "Now playing" "$(mpc current --wait)"
+do :; done