From b61b58ce2c1371d6f904f108fa7feed3abfbe5c7 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Wed, 8 Apr 2026 13:18:14 +0900 Subject: * MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Automated-commit-by: dots Signed-off-by: Robert Günzler --- bin/play-music | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100755 bin/play-music (limited to 'bin/play-music') diff --git a/bin/play-music b/bin/play-music new file mode 100755 index 0000000..14e91f1 --- /dev/null +++ b/bin/play-music @@ -0,0 +1,23 @@ +#!/bin/sh +set -eux + +music_dir=/run/media/robert/fwdrive/music + +mpa() { + mpv --profile=mpa \ + --directory-filter-types=audio \ + --autocreate-playlist=filter \ + --wayland-app-id=mpv.play-music \ + "$@" +} + +case "$1" in +shuffle) + mpa --shuffle $music_dir + ;; +select) + cd $music_dir + subdir=$(find . -type d -printf "%P\n" | shuf | fuzzel -d -w 80) + mpa "$subdir" + ;; +esac -- cgit 1.4.1