Skip to content

Instantly share code, notes, and snippets.

@NuxRo
Created November 20, 2019 13:42
Show Gist options
  • Save NuxRo/5a4c12316b2f624c9576e350fbc61662 to your computer and use it in GitHub Desktop.
Save NuxRo/5a4c12316b2f624c9576e350fbc61662 to your computer and use it in GitHub Desktop.
Alpine mail client new email notifications
#!/bin/bash
# set alpine to
# newmail-fifo-path=~/tmp/alpine.fifo
# then
fifofile=~/tmp/alpine.fifo
while true; do
if read line; then
notify-send "$line"
fi
done <"$fifofile"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment