diff options
author | Raymaekers Luca <luca@spacehb.net> | 2025-03-09 11:34:11 +0100 |
---|---|---|
committer | Raymaekers Luca <luca@spacehb.net> | 2025-03-09 11:34:11 +0100 |
commit | 803e1254ef0a7d1711953f2789442ffb67e1af09 (patch) | |
tree | 1e44fac0fa01548b72e66df7e6dbfecb7c809aa2 | |
parent | 2b1e81af5435011175756a3d2a4957c6845add60 (diff) |
checkpoint
-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 { |