.bashrc
とかに以下を追加。
alias alert_helper='history|tail -n1|sed -e "s/^\s*[0-9]\+\s*//" -e "s/;\s*alert$//"'
alias alert='notify-send -i /usr/share/icons/gnome/32x32/apps/gnome-terminal.png "[$?] $(alert_helper) finished."'
function rosmake(){
`which rosmake` $@; alert
}
rosmakeが終わると画面右上に通知がでる。
よくビルド中に他の作業をしていて、ビルドしていたのを忘れるので。