diff options
author | Joe <rbo@gmx.us> | 2024-06-20 21:00:56 +0200 |
---|---|---|
committer | Joe <rbo@gmx.us> | 2024-06-20 21:00:56 +0200 |
commit | 90cb341c235ff2b007802abd10ac09d944285311 (patch) | |
tree | a9c2f1ec8476fc00ed69db99eff8be34ae1e3541 | |
parent | up (diff) | |
download | dotfiles-bsd-90cb341c235ff2b007802abd10ac09d944285311.tar.gz dotfiles-bsd-90cb341c235ff2b007802abd10ac09d944285311.tar.bz2 dotfiles-bsd-90cb341c235ff2b007802abd10ac09d944285311.tar.xz dotfiles-bsd-90cb341c235ff2b007802abd10ac09d944285311.tar.zst dotfiles-bsd-90cb341c235ff2b007802abd10ac09d944285311.zip |
up
-rw-r--r-- | .config/newsboat/config | 4 | ||||
-rwxr-xr-x | .local/bin/linkview | 13 |
2 files changed, 8 insertions, 9 deletions
diff --git a/.config/newsboat/config b/.config/newsboat/config index 53190ed..b4007ef 100644 --- a/.config/newsboat/config +++ b/.config/newsboat/config @@ -1,6 +1,8 @@ #how-read-feeds no auto-reload no -reload-threads 5 +confirm-mark-all-feeds-read no +confirm-mark-feed-read no +reload-threads 50 external-url-viewer "linkview" diff --git a/.local/bin/linkview b/.local/bin/linkview index 121afad..8874f08 100755 --- a/.local/bin/linkview +++ b/.local/bin/linkview @@ -182,7 +182,7 @@ sub open_link while (1) { $val = `tail -n 1 "$tmpfile" | awk '{print \$2}' | tr -d '%'`; if (looks_like_number($val) != 0) { - system( + system( NOTIFYSEND_PATH, '-h', 'int:value:' . $val, @@ -238,13 +238,10 @@ sub open_link ' <b>' . $file_name . '</b> started downloading' ); (undef, undef, $ret) = capture { - given (HOSTNAME) { - when(["mother", "po-rbo"]) { - system(CURL_PATH, "-fsSLO", $url); - } - when("mars") { - system(FETCH_PATH, $url); - } + if (HOSTNAME eq "mother" or "po-rbo") { + system(CURL_PATH, "-fsSLO", $url); + } elsif (HOSTNAME == "mars") { + system(FETCH_PATH, $url); } }; if ($ret == 0) { |