various changes
* Stop ignoring pdflatex, I rarely use it anyways * Add gk and gj to iamb, and put invites first * Search with searx also in tempbrowsers * teddit is down, don't redirect to it * scale backgrounds better * put slight delay in pipewire to avoid races? * better unsubscribing from gitlab
This commit is contained in:
parent
3c344366cb
commit
a1b46218f5
9 changed files with 35 additions and 22 deletions
|
@ -2,7 +2,19 @@
|
|||
if [ -z "$*" ]; then
|
||||
exec munsubscribe .
|
||||
else
|
||||
for url in $(mshow -qh list-unsubscribe "$@" | xurls -m http); do
|
||||
curl -L -w '%{http_code}' -s -o /dev/null "$url"
|
||||
for mail in $(mseq "$@"); do
|
||||
if [ -n "$(mshow -qh X-GitLab-Issue-IID)" ]; then
|
||||
# if it's a gitlab mail, unsubscribe using glab
|
||||
glab issue unsubscribe "$(mshow "$mail" | sed -n 's/View it on GitLab: \(.*\)/\1/p')"
|
||||
elif [ -n "$(mshow -qh X-GitLab-MergeRequest-IID)" ]; then
|
||||
# if it's a gitlab mail, unsubscribe using glab
|
||||
glab mr unsubscribe "$(mshow "$mail" | sed -n 's/View it on GitLab: \(.*\)/\1/p')"
|
||||
else
|
||||
# assume it's a list email
|
||||
for url in $(mshow -qh list-unsubscribe "$@" | xurls -m http); do
|
||||
curl -L -w '%{http_code}' -s -o /dev/null "$url"
|
||||
done
|
||||
fi
|
||||
done
|
||||
|
||||
fi
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue