diff options
author | Joe <rbo@gmx.us> | 2025-03-01 22:18:58 +0100 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2025-03-01 22:18:58 +0100 |
commit | f144bd1119206c025dc4cc534cb3016e83790e2c (patch) | |
tree | 5121126242148f974e862a9d51f799cda91b96a1 /.local/bin/linkview | |
parent | waylanded (diff) | |
download | dotfiles-bsd-f144bd1119206c025dc4cc534cb3016e83790e2c.tar.gz dotfiles-bsd-f144bd1119206c025dc4cc534cb3016e83790e2c.tar.bz2 dotfiles-bsd-f144bd1119206c025dc4cc534cb3016e83790e2c.tar.xz dotfiles-bsd-f144bd1119206c025dc4cc534cb3016e83790e2c.tar.zst dotfiles-bsd-f144bd1119206c025dc4cc534cb3016e83790e2c.zip |
up
Diffstat (limited to '.local/bin/linkview')
-rwxr-xr-x | .local/bin/linkview | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/.local/bin/linkview b/.local/bin/linkview index d07a8a6..a61a417 100755 --- a/.local/bin/linkview +++ b/.local/bin/linkview @@ -18,7 +18,8 @@ my $menu = "dmenu"; my $IMGVIEW_PATH = 'nsxiv -b -a'; if (defined $ENV{WAYLAND_DISPLAY}) { - $menu = "wmenu -f 'BigBlueTermPlus Nerd Font 13'"; + $menu = "wmenu -f 'BigBlueTermPlus Nerd Font 13' " . +"-N '#1d2021' -n '#ebdbb2' -S '#cc241d' -s '#ebdbb2'"; $IMGVIEW_PATH = 'imv'; } @@ -41,7 +42,7 @@ use constant PROG_LIST => "" . "ytdl" . "\n" . "ytdl thumbnail" . "\n" . "fetch" . "\n" . -"nsxiv" . "\n" . +"img" . "\n" . "zathura" . "\n" . "w3m" . "\n" . "browser" . "\n" . @@ -342,7 +343,7 @@ sub open_link exit 0; } } - elsif ($a eq "nsxiv" || $a eq "zathura") { + elsif ($a eq "img" || $a eq "zathura") { $pid = fork(); if (not $pid) { setsid(); @@ -364,7 +365,7 @@ sub open_link system(FETCH_PATH, '-q', $url); } } - if ($a eq "nsxiv") { + if ($a eq "img") { exec($IMGVIEW_PATH . " " . $file_name); } else { |