From 16afe4cbc95764919ee9c8beaa2c2ec49f68cfd8 Mon Sep 17 00:00:00 2001 From: Salt Date: Sun, 30 Jul 2017 19:07:28 -0500 Subject: [PATCH] Added a short playlist player script --- .bin/mpc/mpc-i3-playlists | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.bin/mpc/mpc-i3-playlists b/.bin/mpc/mpc-i3-playlists index 5f129252..3a7d5b5a 100755 --- a/.bin/mpc/mpc-i3-playlists +++ b/.bin/mpc/mpc-i3-playlists @@ -1,2 +1,6 @@ #!/bin/bash -local PLAYLIST="$(mpc lsplaylists | rofi -dmenu -p 'Play MPD Playlist: ')" +PLAYLIST="$(mpc lsplaylists | rofi -lines 10 -dmenu -p 'Play MPD Playlist: ')" +mpc clear +mpc load $PLAYLIST +mpc play +notify-send -u low -t 5 -a 'Mopidy' "$PLAYLIST" "Beginning playback of playlist $PLAYLIST"