X-Git-Url: https://git.madduck.net/etc/mutt.git/blobdiff_plain/7013dfe93a05082153f79eca6c9e5c05b54d9d50..HEAD:/.config/mutt/htmldump diff --git a/.config/mutt/htmldump b/.config/mutt/htmldump index c15ecd1..503c235 100755 --- a/.config/mutt/htmldump +++ b/.config/mutt/htmldump @@ -2,7 +2,7 @@ get_mutt_confvar() { local ret; - ret=$(mutt -Q "$1" | sed -rne "s,\S+(=| is ),,p") + ret=$(mutt -Q "$1" | sed -rne "s,^(set )?\S+\s*(=|is)\s*,,p") case "$ret" in (set) echo return 0;; (unset) echo return 1;; @@ -20,6 +20,14 @@ elif [ $WRAP -gt 0 ]; then fi +awesome-client <<-_eof + local naughty = require("naughty") + naughty.notify({ preset = naughty.config.presets.low, + title = "htmldump called", + text = [[$@]], + }) + _eof + if command -v html2markdown >/dev/null; then exec html2markdown --asterisk-emphasis --body-width=$WIDTH --unicode-snob \