Envía notificaciones al escritorio.
$ notify-send "linux es genial"
$ notify-send -u normal -t 0 Nota "linux es genial"
$ notify-send -u critical -t 20 Nota "Reiniciar el sistema"
Un ejemplo de uso para algunas tareas:
$ nano .bashrc
Añadir las siguientes dos lineas:
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/32×32/apps/gnome-terminal.png "[$?] $(alert_helper)"'
alias gedit='notify-send "Abriendo..." "Se ha lanzado gedit" && gedit' (si se quiere probar el comando al lanzar una aplicación)
Guardar y recargar bashrc:
$ source .bashrc
Otros ejemplos:
$ find /home/$USER -iname *.jpg; notify-send "El comando ha terminado su labor."
$ sleep 10; alert
$ find /home/$USER -iname *.jpg; notify-send -i gtk-dialog-warning -t 4000 "ATENCIÓN" "El comando find ha terminado..."