dotfiles/.scripts/mpv-yt-playlists.sh

16 lines
325 B
Bash
Raw Normal View History

2024-06-29 10:32:34 +02:00
#!/bin/bash
declare -A playlists=(
[V1]='https://www.youtube.com/playlist?list=PLhe0fcbtmXgH05vjUb9aXib59PEpx1r7W'
)
playlist_url="${playlists[$1]}"
if [ -z "$playlist_url" ]; then
echo "Bad playlist name."
exit 1
fi
pkill -9 -u "$USER" mpv > /dev/null
hyprctl dispatch exec "mpv '$playlist_url' --no-video --shuffle"