summaryrefslogtreecommitdiffstats
path: root/.local/bin/linkview
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2022-04-05 16:38:16 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2022-04-05 16:38:16 +0200
commit5ec752801d7a69912cceb6e7a13fd7db29878b85 (patch)
tree11ab4ca863171f8d6b49d7a8a0cf45781f97f1e0 /.local/bin/linkview
parentAdded list of pkg for the work computer (diff)
downloaddotfiles-bsd-5ec752801d7a69912cceb6e7a13fd7db29878b85.tar.gz
dotfiles-bsd-5ec752801d7a69912cceb6e7a13fd7db29878b85.tar.bz2
dotfiles-bsd-5ec752801d7a69912cceb6e7a13fd7db29878b85.tar.xz
dotfiles-bsd-5ec752801d7a69912cceb6e7a13fd7db29878b85.tar.zst
dotfiles-bsd-5ec752801d7a69912cceb6e7a13fd7db29878b85.zip
Switched to nsxiv
Diffstat (limited to '.local/bin/linkview')
-rwxr-xr-x.local/bin/linkview12
1 files changed, 6 insertions, 6 deletions
diff --git a/.local/bin/linkview b/.local/bin/linkview
index cf8d983..515bb85 100755
--- a/.local/bin/linkview
+++ b/.local/bin/linkview
@@ -16,7 +16,7 @@ use constant {
MPV_PATH => '/usr/local/bin/mpv',
YTDL_PATH => '/usr/local/bin/yt-dlp',
FETCH_PATH => '/usr/bin/fetch',
- SXIV_PATH => '/usr/local/bin/sxiv',
+ IMGVIEW_PATH => '/usr/local/bin/nsxiv',
ZATHURA_PATH => '/usr/local/bin/zathura',
W3M_PATH => '/usr/local/bin/w3m',
BROWSER_PATH => '/usr/local/bin/firefox',
@@ -28,7 +28,7 @@ use constant PROG_LIST => "" .
"youtube-dl" . "\n" .
"youtube-dl thumbnail" . "\n" .
"fetch" . "\n" .
-"sxiv" . "\n" .
+"nsxiv" . "\n" .
"zathura" . "\n" .
"w3m" . "\n" .
"firefox" . "\n";
@@ -301,12 +301,12 @@ sub open_link
$file_name = $tmp;
$file_name =~ s/.+\///g;
chomp $file_name;
- system(SXIV_PATH, '-f', '-b', '-a', $file_name);
+ system(IMGVIEW_PATH, '-f', '-b', '-a', $file_name);
unlink($file_name);
exit 0;
}
}
- elsif ($a eq "sxiv" || $a eq "zathura") {
+ elsif ($a eq "nsxiv" || $a eq "zathura") {
$pid = fork();
if (not $pid) {
setsid();
@@ -321,8 +321,8 @@ sub open_link
' fetching <b>'. $file_name . '</b> to <b>/tmp</b>'
);
system(FETCH_PATH, '-q', $url);
- if ($a == "sxiv") {
- exec(SXIV_PATH, '-b', '-a', $file_name);
+ if ($a == "nsxiv") {
+ exec(IMGVIEW_PATH, '-b', '-a', $file_name);
}
else {
exec(ZATHURA_PATH, $file_name);