Bin: Move binary files to .local, add symlink

This commit is contained in:
2017-12-26 18:11:38 -06:00
parent 92c53a5db9
commit 572df071b6
19 changed files with 1 additions and 0 deletions

17
.local/bin/mpc/mpc-i3-playlists Executable file
View File

@@ -0,0 +1,17 @@
#!/bin/bash
MESSAGE='-mesg Append:'
if [ "$1" = "--clear" ]; then
MESSAGE='-mesg Replace:'
fi
PLAYLIST="$(mpc lsplaylists | rofi -lines 10 -dmenu -p 'Play MPD Playlist: ' $MESSAGE)"
if [ "$PLAYLIST" = "" ]; then
exit
fi
if [ "$1" = "--clear" ]; then
mpc clear
fi
mpc load $PLAYLIST
if [[ "$(mpc)" != *"playing"* ]]; then
mpc play
fi
notify-send -u low -t 5 -a 'Mopidy' "$PLAYLIST" "Beginning playback of playlist $PLAYLIST"