dotfiles/.config/bin/music.sh

16 lines
239 B
Bash
Executable File

#!/bin/sh
mpc update -q
mpc repeat on
music="$(mpc listall | wofi --dmenu)" # put to variable so current music wont stop
mpc 'clear' # removes current queue
if [ "$music" != "" ]; then
mpc add "$music"
else
mpc 'clear';
fi;
mpc play