
If you are running an environment which supports notifications via libnotify, you can install this, and then you'll get a notification when any command finishes that took longer than ten seconds to finish.
This package installs a set of bash functions and settings which will be pulled into a bash login shell via /etc/profile.d