home/.bin/mpc/mpc-i3-playlists

10 lines
259 B
Plaintext
Raw Normal View History

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