commit af08089b6d2132bb2b2be9174494e1eca7f72e9c
parent fa3e0e302b004d0d8e1c1d0040b0b242d22c2eb9
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Sun, 21 Feb 2021 08:50:02 +0100
plumb: use mpv(1) in console mode for radio
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.local/bin/plumb b/.local/bin/plumb
@@ -214,7 +214,7 @@ handle_url() {
if regeximatch "$t" '\.(mp4|mkv|webm|avi|ogv|m3u|pls)$'; then
detach $prefix mpv "$t"
elif regeximatch "$t" '^radio://'; then
- $prefix mplayer "http${t##radio}"
+ $prefix mpv --force-window=no "http${t##radio}"
elif regeximatch "$t" '\.(mp3|ogg|m3u|wav|opus)$'; then
$prefix mplayer "$(fetch "$t")"
elif regeximatch "$t" '\.(png|jpg|jpeg|tif|bmp|gif)$'; then