summaryrefslogtreecommitdiffstats
path: root/.local/bin/linkview
diff options
context:
space:
mode:
authorJoe <rrbo@proton.me>2023-04-13 15:00:51 +0200
committerJoe <rrbo@proton.me>2023-04-13 15:00:51 +0200
commit83119fe598ee445eb25867c038f7daafad06b8e3 (patch)
tree707bb981e1b077b9fb233c4ee3ea550eb6bfac02 /.local/bin/linkview
parentup (diff)
downloaddotfiles-bsd-83119fe598ee445eb25867c038f7daafad06b8e3.tar.gz
dotfiles-bsd-83119fe598ee445eb25867c038f7daafad06b8e3.tar.bz2
dotfiles-bsd-83119fe598ee445eb25867c038f7daafad06b8e3.tar.xz
dotfiles-bsd-83119fe598ee445eb25867c038f7daafad06b8e3.tar.zst
dotfiles-bsd-83119fe598ee445eb25867c038f7daafad06b8e3.zip
up
Diffstat (limited to '.local/bin/linkview')
-rwxr-xr-x.local/bin/linkview5
1 files changed, 3 insertions, 2 deletions
diff --git a/.local/bin/linkview b/.local/bin/linkview
index 916e0c5..121afad 100755
--- a/.local/bin/linkview
+++ b/.local/bin/linkview
@@ -7,6 +7,7 @@ use Scalar::Util qw(looks_like_number);
use File::HomeDir qw(home);
use File::Basename qw(basename);
use Cwd qw(cwd);
+use Env qw(BROWSER TERMINAL);
use Term::ReadKey;
use Capture::Tiny qw(capture);
use POSIX qw(setsid);
@@ -14,7 +15,7 @@ use feature qw(switch);
no warnings qw(experimental::smartmatch);
use constant {
- TERMINAL_PATH => 'st',
+ TERMINAL_PATH => $TERMINAL,
MPV_PATH => 'mpv',
YTDL_PATH => 'yt-dlp',
FETCH_PATH => 'fetch',
@@ -22,7 +23,7 @@ use constant {
IMGVIEW_PATH => 'nsxiv',
ZATHURA_PATH => 'zathura',
W3M_PATH => 'w3m',
- BROWSER_PATH => 'firefox',
+ BROWSER_PATH => $BROWSER,
NOTIFYSEND_PATH => 'notify-send',
HOSTNAME => (split /\./, hostname())
};