blob: bc31aacc14f18ce5be87cc5bf8c9e250d85307c3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
#!/bin/bash
# for some reason, for reliable performance, I have to first start an empty terminal
# could be a dwm issue
$TERMINAL &
P1=$!
disown
sleep 0.03
for file in "$XDG_CONFIG_HOME/mutt/accounts"/*; do
title="mutt: $(grep "set my_email" "$file" | cut -d'=' -f2 | xargs)"
"$TERMINAL" -T "$title" mutt -F "$file" &
disown
done
wait
sleep 0.03
kill "$P1"
|