commit b4d27af423647d922e43282ea257a80c3eb6e953
parent f6467e21a93026578db9ccb0a4446d8fe0ed5836
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Tue, 23 Mar 2021 08:51:15 +0100
plumb: mplayer(1) -> mpv(1)
Diffstat:
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/.local/bin/plumb b/.local/bin/plumb
@@ -124,7 +124,7 @@ handle_file_type() {
audio/*|\
application/ogg|\
application/octet-stream)
- mplayer "$1";;
+ mpv "$1";;
text/html)
detach $BROWSER "$1";;
text/troff)
@@ -228,7 +228,7 @@ handle_uri() {
detach $prefix mpv "$t"
fi
elif regeximatch "$t" '\.(mp3|ogg|m3u|wav|opus)$'; then
- $prefix mplayer "$(fetch "$t")"
+ $prefix mpv "$(fetch "$t")"
elif regeximatch "$t" '\.(png|jpg|jpeg|tif|bmp|gif)$'; then
$prefix sxiv -a -s f "$(fetch "$t")"
elif regeximatch "$t" '\.svg$'; then
@@ -260,11 +260,6 @@ handle_uri() {
fi
elif regeximatch "$t" '(youtube\.|youtu\.be|vimeo\.com|invidious|invidio\.us|invidious\.snopyta\.org)'; then
detach $prefix mpv "$t"
- #mkdir -p "${HOME}/tmp"
- #cd "$HOME/tmp"
- #youtube-dl "$t"
- #$prefix mplayer "$f"
- #rm "$f"
elif regeximatch "$t" '^(http|https)://' || \
regeximatch "$t" '\.webp$'; then