Compare commits

...

2 Commits

Author SHA1 Message Date
Felix Van der Jeugt 740fb51f02
add temp/newbrowser spawners 2021-08-23 09:56:04 +02:00
Felix Van der Jeugt 95287881c3
add munsubscribe script 2021-08-23 09:54:41 +02:00
2 changed files with 6 additions and 3 deletions

View File

@ -161,6 +161,10 @@ config.bind("o", "set-cmd-text -s :open -s ", mode="normal")
config.bind("O", "set-cmd-text -s :open -s -t ", mode="normal")
config.bind("\\", "set-cmd-text -s :open ", mode="normal")
config.bind("|", "set-cmd-text -s :open -t ", mode="normal")
config.bind(";t", "hint links spawn --detach tempbrowser {hint-url}", mode="normal")
config.bind(";n", "hint links spawn --detach newbrowser {hint-url}", mode="normal")
config.bind("gt", "spawn --detach tempbrowser {url}", mode="normal")
config.bind("gn", "spawn --detach newbrowser {url}", mode="normal")
# I don't use bookmarks
config.unbind('wB')

View File

@ -1,9 +1,8 @@
#!/bin/sh
if [ -z "$*" ]; then
exec munsubscribe .
else
for url in $(mshow -qh list-unsubscribe "$@" | grep -o '<http[^>]*>' | sed -e 's/^<//' -e 's/>$//'); do
curl -w '%{http_code}' -s -o /dev/null "$url"
for url in $(mshow -qh list-unsubscribe "$@" | xurls -m http); do
curl -L -w '%{http_code}' -s -o /dev/null "$url"
done
fi