aboutsummaryrefslogtreecommitdiff
path: root/stuff/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'stuff/scripts')
-rwxr-xr-xstuff/scripts/mpd_show6
1 files changed, 6 insertions, 0 deletions
diff --git a/stuff/scripts/mpd_show b/stuff/scripts/mpd_show
new file mode 100755
index 0000000..8d14a1d
--- /dev/null
+++ b/stuff/scripts/mpd_show
@@ -0,0 +1,6 @@
+#!/bin/sh
+
+raw="$(mpc)"
+song=$(echo "$raw" | sed -n '1p')
+time=$(echo "$raw" | sed -n '2p')
+notify-send "$song" "$time"