dotfiles/.local/bin/scripts/mpq
2025-02-04 11:57:49 +01:00

9 lines
227 B
Bash
Executable file

#!/bin/sh -e
# Add file to mpd queue
if test $# -eq 0
then mpc --format "%album% %track% > %artist% - %title% (%genre% aus %date%)" current
fi
for arg
do fullpath=$(realpath "$arg")
mpc insert "${fullpath/$MUSIC\//}"
done