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

6 lines
121 B
Bash
Executable file

#!/bin/sh -e
# Add file to mpd queue
for arg
do fullpath=$(realpath "$arg")
mpc insert "${fullpath/$MUSIC\//}"
done