From 1f2135ad5a4d629a60dd619e35d00d2759e87c87 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Fri, 6 Nov 2020 16:44:49 +0100 Subject: In progress --- .local/bin/linkview | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to '.local') diff --git a/.local/bin/linkview b/.local/bin/linkview index f70a198..d43937f 100755 --- a/.local/bin/linkview +++ b/.local/bin/linkview @@ -124,6 +124,12 @@ sub open_link exec(FIREFOX_PATH . ' --kiosk ' . $url . ' >/dev/null 2>&1'); } } + elsif ($a == 9) { + exec( + MPV_PATH, + $url + ); + } return; } @@ -142,6 +148,7 @@ sub prompt "6) mpv-loop\n" . "7) w3m\n" . "8) firefox\n" . + "9) mpv-verbose\n" . "0) quit\n" . "\n" . "> "; @@ -157,7 +164,7 @@ sub prompt if ( !looks_like_number($answer) || $answer < 0 || - $answer > 8 + $answer > 9 ) { print "linkview: bad answer\n"; return -1; -- cgit v1.2.3