summaryrefslogtreecommitdiffstats
path: root/.local/bin/linkview
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-11-06 16:44:49 +0100
committerJozanLeClerc <bousset.rudy@gmail.com>2020-11-06 16:44:49 +0100
commit1f2135ad5a4d629a60dd619e35d00d2759e87c87 (patch)
tree33e65110e7be398265cd953f8ee12834df9a9caf /.local/bin/linkview
parentbspwm now has embedded LICENSE (diff)
downloaddotfiles-bsd-1f2135ad5a4d629a60dd619e35d00d2759e87c87.tar.gz
dotfiles-bsd-1f2135ad5a4d629a60dd619e35d00d2759e87c87.tar.bz2
dotfiles-bsd-1f2135ad5a4d629a60dd619e35d00d2759e87c87.tar.xz
dotfiles-bsd-1f2135ad5a4d629a60dd619e35d00d2759e87c87.tar.zst
dotfiles-bsd-1f2135ad5a4d629a60dd619e35d00d2759e87c87.zip
In progress
Diffstat (limited to '.local/bin/linkview')
-rwxr-xr-x.local/bin/linkview9
1 files changed, 8 insertions, 1 deletions
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;