home/.bin/mpc/mpc-i3-playlists
2017-07-30 19:31:12 -05:00

10 lines
259 B
Bash
Executable File

#!/bin/bash
PLAYLIST="$(mpc lsplaylists | rofi -lines 10 -dmenu -p 'Play MPD Playlist: ')"
if [ "$PLAYLIST" = "" ]; then
exit
fi
mpc clear
mpc load $PLAYLIST
mpc play
notify-send -u low -t 5 -a 'Mopidy' "$PLAYLIST" "Beginning playback of playlist $PLAYLIST"