commit 19b6722f325084805f99063f1d3afdc6fbc087d9
parent 06a180e79b5f83c22dd6525364e2157d5783e77f
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sat, 29 Feb 2020 16:02:04 +0100
Add help comment for tsvplumb, add mpv video delay, escape parens in music fetcher
Diffstat:
3 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/.config/mpv/mpv.conf b/.config/mpv/mpv.conf
@@ -1,3 +1,4 @@
# Use GPU-accelerated video output by default
vo=gpu
hwdec=vaapi
+audio-delay=-0.3
diff --git a/.local/bin/tsvplumb b/.local/bin/tsvplumb
@@ -1,5 +1,7 @@
#!/bin/sh
# requirements: dmenu, fzy
+# Sends the string in the second column of a tab-separated file to
+# the plumb command.
if [ "$#" -lt 1 ]; then
tsv="$(cat)"
@@ -7,7 +9,7 @@ else
tsv="$(cat "$1")"
fi
-lines=10
+lines=8
if [ -z "$TERM" ]; then
t="$(printf '%s' "$tsv" | dmenu -i -l "$lines")"
else
diff --git a/.local/bin/youtube-dl-music b/.local/bin/youtube-dl-music
@@ -20,7 +20,7 @@ album="$($prefix youtube-dl \
--extract-audio \
--audio-quality 0 \
--audio-format mp3 \
- --output "%(playlist_index)s - %(title)s.%(ext)s" \
+ --output "%\(playlist_index\)s - %\(title\)s.%\(ext\)s" \
"$1" | tee /dev/tty | grep 'Finished downloading' | sed 's/.*: //')"
read -p "add metadata? [Y/n] " -n 1 -r