linkhandler: add torrent entry

This commit is contained in:
Dmitry Zakharchenko 2022-10-31 13:46:19 +02:00
parent c899c42abb
commit 8b3cc9a9d4

View file

@ -17,6 +17,8 @@ case "$feed" in
curl -sL "$feed" > "/tmp/$(echo "$feed" | sed "s/.*\///;s/%20/ /g")" && setsid -f zathura "/tmp/$(echo "$feed" | sed "s/.*\///;s/%20/ /g")" >/dev/null 2>&1 ;;
*go.dev*|*lukesmith.xyz*|*drewdevault.com*)
setsid -f foot elinks "$feed" ;;
magnet*)
torwrap add "$feed" ;;
*)
setsid -f "$BROWSER" "$feed" >/dev/null 2>&1
esac