Crear Notificaciones de Sistema con Notify-Send

  Rutinas Utiles, Sistema

Una buena opción de crear recordatorios, mensajes de sistema o advertencias de script, es usando Notify-Send.

Esta opción permite crear notificaciones estableciendo prioridades, tiempo de muestra, icono, categoría, etc.

Para Instalar este servicio, utilizamos el comandos:

# sudo apt-get install notify-osd

El detalle de uso del comandos:

Uso:
  notify-send [OPCIÓN…] <SUMMARY> [BODY] - create a notification

Opciones de ayuda:
  -?, --help                        Mostrar opciones de ayuda

Opciones de la aplicación:
  -u, --urgency=LEVEL               Specifies the urgency level (low, normal, critical).
  -t, --expire-time=TIME            Specifies the timeout in milliseconds at which to expire the notification.
  -a, --app-name=APP_NAME           Specifies the app name for the icon
  -i, --icon=ICON[,ICON...]         Specifies an icon filename or stock icon to display.
  -c, --category=TYPE[,TYPE...]     Specifies the notification category.
  -h, --hint=TYPE:NAME:VALUE        Specifies basic extra data to pass. Valid types are int, double, string and byte.
  -v, --version                     Version of the package.

Ejemplo de notificación con comando:

# notify-send -u critical -t 4000 "Titulo" "Texto"