dotfiles/.local/bin/scripts/mpq

10 lines
227 B
Text
Raw Normal View History

2024-04-08 13:02:09 +02:00
#!/bin/sh -e
2025-01-15 11:36:47 +01:00
# Add file to mpd queue
2025-02-04 11:52:56 +01:00
if test $# -eq 0
then mpc --format "%album% %track% > %artist% - %title% (%genre% aus %date%)" current
fi
2024-04-08 13:02:09 +02:00
for arg
do fullpath=$(realpath "$arg")
mpc insert "${fullpath/$MUSIC\//}"
done