aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xconfig/i3blocks/scripts/mpd7
m---------private0
2 files changed, 6 insertions, 1 deletions
diff --git a/config/i3blocks/scripts/mpd b/config/i3blocks/scripts/mpd
index 6594a57..0b915a6 100755
--- a/config/i3blocks/scripts/mpd
+++ b/config/i3blocks/scripts/mpd
@@ -7,6 +7,9 @@ case "$BLOCK_BUTTON" in
2)
mpc stop >/dev/null
;;
+ 3)
+ nohup urxvt -title "Music player daemon client" -e ncmpcpp &
+ ;;
4)
mpc next >/dev/null
;;
@@ -16,11 +19,13 @@ case "$BLOCK_BUTTON" in
esac
if [ -n "`mpc status | grep -E "(playing|paused)"`" ]; then
- echo `mpc -f "%artist%, %album%, %title%" status | head -1`
+ echo `mpc -f "♫ %artist%, %album%, %title%" status | head -1`
echo
if [ -n `mpc status | grep playing` ]; then
echo "#ffff00"
elif [ -n `mpc status | grep paused` ]; then
echo "#00ff00"
fi
+else
+ echo "♫"
fi
diff --git a/private b/private
-Subproject a4b96203efc5d3a9b7df38d1e3aba9b5f808e2f
+Subproject 3f5aa66bb2c6b888958356385bcb23813b5ec15