dotfiles/scripts/play-music.sh

16 lines
394 B
Bash

#!/usr/bin/env sh
dash $HOME/bin/cmusd.sh
dash -c "$AUDIOPLAYER -C 'view tree'"
dash -c "$AUDIOPLAYER -C clear"
dash -c "$AUDIOPLAYER -C \"view queue\""
dash -c "$AUDIOPLAYER -C clear"
sleep 1
dash -c "$AUDIOPLAYER -C \"view sorted\""
dash -c "$AUDIOPLAYER -C clear"
dash -c "$AUDIOPLAYER -C \"add $MUSIC\""
sleep 1
dash -c "$AUDIOPLAYER -C player-next"
dash -c "$AUDIOPLAYER -C player-play"