#!/bin/sh

start=$(date +%s)
$@
if [ $(($(date +%s) - $start)) -gt 0 ]
  then notify-send "Command finished:" "$*"
fi