diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-06 16:44:49 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-06 16:44:49 +0100 |
commit | 1f2135ad5a4d629a60dd619e35d00d2759e87c87 (patch) | |
tree | 33e65110e7be398265cd953f8ee12834df9a9caf /.local/bin/linkview | |
parent | bspwm now has embedded LICENSE (diff) | |
download | dotfiles-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/linkview | 9 |
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; |