From 8b3cc9a9d478f32ed14b68aef948882526301562 Mon Sep 17 00:00:00 2001 From: Dmitry Zakharchenko Date: Mon, 31 Oct 2022 13:46:19 +0200 Subject: [PATCH] linkhandler: add torrent entry --- .local/bin/menu/linkhandler | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.local/bin/menu/linkhandler b/.local/bin/menu/linkhandler index d95fbfc..c554821 100755 --- a/.local/bin/menu/linkhandler +++ b/.local/bin/menu/linkhandler @@ -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