diff options
-rwxr-xr-x | bin/extra/myts | 8 | ||||
-rw-r--r-- | config/common/mpd/mpd.conf | 7 |
2 files changed, 8 insertions, 7 deletions
diff --git a/bin/extra/myts b/bin/extra/myts index aea4842..97a889d 100755 --- a/bin/extra/myts +++ b/bin/extra/myts @@ -33,7 +33,7 @@ fi q="$@" if [ -z "$q" ]; then - >&2 printf 'Usage: %s query\n' "$0" + >&2 printf 'Usage: %s [-nm] query\n' "$0" exit 1 fi @@ -56,10 +56,10 @@ rm -f "$tsv" "$json" if [ "$toMPDFlag" ]; then >&2 printf 'Adding to mpd..\n' - mpc add "$(yt-dlp --prefer-insecure -g -f140 "$url")" + mpc --no-resume-playback add "$(yt-dlp --prefer-insecure -g -f140 "$url")" elif [ "$noVideoFlag" ]; then - mpv --no-video "$url" + mpv --no-resume-playback --no-video "$url" else - mpv "$url" + mpv --no-resume-playback "$url" fi >&2 printf 'Done.\n' diff --git a/config/common/mpd/mpd.conf b/config/common/mpd/mpd.conf index f9e7f9e..40ece39 100644 --- a/config/common/mpd/mpd.conf +++ b/config/common/mpd/mpd.conf @@ -1,4 +1,4 @@ -music_directory "/media/manthe/music" +music_directory "~/music" playlist_directory "~/.config/mpd/playlists" db_file "~/.config/mpd/database" pid_file "~/.config/mpd/pid" @@ -7,9 +7,10 @@ auto_update "yes" restore_paused "yes" # bind_to_address "/run/user/1000/mpd/socket" # port "6600" + audio_output { - type "pulse" - name "pulse audio" + type "alsa" + name "ALSA sound card" } audio_output { |