#!/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