summaryrefslogtreecommitdiff
path: root/bin/mystatus
blob: b26e9b692295a54ed6192eddcba413c8657a6567 (plain)
1
2
3
4
5
6
7
8
9
#!/bin/sh
# shell script to prepend i3status with more stuff

i3status | while :
do
    read line
    nmails=$(find $HOME/.mail -path '*/new/*' -type f | wc -l)
    echo "Email: ${nmails} | $line" || exit 1
done