aboutsummaryrefslogtreecommitdiff
path: root/mail.sh
blob: 5478787da74a37ae0a70924bdbff853e6bc24c54 (plain)
1
2
3
4
5
6
7
8
9
10
#!/bin/sh

# Opens a mailbox using neomutt (and isync if neomutt configured to do so)

pkill -SIGRTMIN+15 i3blocks
account="$(printf "gmail\nuniovi\ndisroot" | fzf)"
[ "$account" = "gmail" ] && neomutt -F "$HOME/.config/mutt/gmmuttrc"
[ "$account" = "uniovi" ] && neomutt -F "$HOME/.config/mutt/cumuttrc"
[ "$account" = "disroot" ] && neomutt -F "$HOME/.config/mutt/drmuttrc"
pkill -SIGRTMIN+15 i3blocks