#!/bin/sh OUTPUT=$(script -c "muchsync mail.local > $(tty)") notify-send "New mail" "$OUTPUT"