diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-01 20:19:21 +0100 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-11-01 20:19:21 +0100 |
commit | 1739341e87cf7b1b80f76b78eb0a48912d47a705 (patch) | |
tree | fede94876a0daf1198a8e08ffefc3fb19a4270b3 /.local/bin/linkview.pl | |
parent | Renamed (diff) | |
download | dotfiles-bsd-1739341e87cf7b1b80f76b78eb0a48912d47a705.tar.gz dotfiles-bsd-1739341e87cf7b1b80f76b78eb0a48912d47a705.tar.bz2 dotfiles-bsd-1739341e87cf7b1b80f76b78eb0a48912d47a705.tar.xz dotfiles-bsd-1739341e87cf7b1b80f76b78eb0a48912d47a705.tar.zst dotfiles-bsd-1739341e87cf7b1b80f76b78eb0a48912d47a705.zip |
Renamed again
Diffstat (limited to '.local/bin/linkview.pl')
-rwxr-xr-x | .local/bin/linkview.pl | 46 |
1 files changed, 0 insertions, 46 deletions
diff --git a/.local/bin/linkview.pl b/.local/bin/linkview.pl deleted file mode 100755 index 8baf8c0..0000000 --- a/.local/bin/linkview.pl +++ /dev/null @@ -1,46 +0,0 @@ -#!/usr/local/bin/perl - -use strict; -use warnings; -use Term::ANSIColor; - -use constant { - MPV_PATH => '/home/jozan/.local/bin/mpview', - FETCH_PATH => '/usr/bin/fetch' -}; - -# ext="${1##*.}" -# mpvFiles="mkv mp4 gif" -# sxivFiles="png jpg jpeg jpe xpm" -# wgetFiles="flac mp3 mp3?source=feed opus pdf doc docx" -# -# cd ~/dl || exit -# -# if echo "$sxivFiles" | grep -w "$ext" > /dev/null; then -# nohup sxiv "$1" > /dev/null & -# elif echo "$mpvFiles" | grep -w "$ext" > /dev/null; then -# nohup mpv --loop --quiet "$1" > /dev/null & -# elif echo "$wgetFiles" | grep -w "$ext" > /dev/null; then -# clear -# fetch "$1" -# else -# clear -# mpv-view.pl "$1" -# fi - -sub main -{ - my $answer; - - if (@ARGV == 0) { - print STDERR "URL needed\n"; - exit 1; - } - print colored($ARGV[0], 'bold_green') . "\n"; - $answer = <STDIN>; - return; -} - -main(); - -__END__ |