diff options
Diffstat (limited to '')
-rwxr-xr-x | .local/bin/linkview | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/.local/bin/linkview b/.local/bin/linkview index b66022a..349d5c8 100755 --- a/.local/bin/linkview +++ b/.local/bin/linkview @@ -35,7 +35,7 @@ use constant PROG_LIST => "" . "play" . "\n" . "img" . "\n" . "dl" . "\n" . -"pod" . "\n" . +"audio" . "\n" . "pdf" . "\n" . "w3m" . "\n" . "browser" . "\n" . @@ -94,9 +94,6 @@ sub open_link } return; } - elsif ($a eq "mpv-term") { - exec(TERMINAL_PATH, '-e', MPV_PATH, '--audio-channels=stereo', $url); - } elsif ($a eq "dl") { if (is_yt($url) != 0) { $list = QUAL_LIST; @@ -266,7 +263,7 @@ sub open_link } return; } - elsif ($a eq "pod") { + elsif ($a eq "audio") { $pid = fork(); if (not $pid) { setsid(); @@ -278,7 +275,15 @@ sub open_link 'playing media', ' playing <b>' . $article_name . '</b>' ); - if (system(TERMINAL_PATH, "-e", MPV_PATH, $url) != 0) { + if (system( + TERMINAL_PATH, + "-e", + MPV_PATH, + "--vo=null", + "--video=no", + "--no-video", + $url + ) != 0) { exec( NOTIFYSEND_PATH, '-u', 'critical', |