zoukankan      html  css  js  c++  java
  • gnome-shell 使用 notify-send 发送桌面消息

    什么是notify-send?

         notify-send - a program to send desktop notifications

    怎么使用?

    NAME

           notify-send - a program to send desktop notifications
    
    

    SYNOPSIS

           notify-send [OPTIONS] <summary> [body]
    
    

    DESCRIPTION

           With notify-send you can sends desktop notifications to the user via a notification daemon
           from the command line.  These notifications can be used to inform the user about an  event
           or display some form of information without getting in the user's way.
    
    

    OPTIONS

           -u, --urgency=LEVEL Specifies the urgency level (low, normal, critical).
    
           -t, --expire-time=TIME
                  The duration, in milliseconds, for the notification to appear on screen.  (Ubuntu's
                  Notify OSD and GNOME Shell both ignore this parameter.)
    
           -i, --icon=ICON[,ICON...]
                  Specifies an icon filename or stock icon to display.
    
           -c, --category=TYPE[,TYPE...]
                  Specifies the notification category.
    
              Help options:
    
           -?, --help
                  Show this help message
    
           -h, --hint=TYPE:NAME:VALUE
                  Specifies basic extra data to pass. Valid types are int, double, string and byte.
    
           SEE ALSO
                  The Desktop Notification Spec on http://www.galago-project.org/specs/notification/.
    
    

    AUTHOR

           This manual page was written by Andre Filipe de Assuncao e  Brito  <decko@noisemakers.org>
           and  Paul  van Tilburg <paulvt@debian.org> and Riccardo Setti <giskard@debian.org> for the
           Debian project (but may be used by others).
    在 gnome-shell 中 使用 notify-send --help 命令来进行显示使用说明:
    ➜  Downloads notify-send --help
    Usage:
      notify-send [OPTION?] <SUMMARY> [BODY] - create a notification
    
    Help Options:
      -?, --help                        Show help options
    
    Application Options:
      -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.
    

      之后我们将结合crontab等命令, 来进行定时发送消息,进行桌面和邮件通知。

  • 相关阅读:
    bstToDoublyList
    Springboot系列1_什么是Springboot
    servlet总结
    JavaFx开发桌面软件
    在Emacs中使用plantuml画UML图
    IIS7.0上传文件限制的解决方法
    开源免费的天气预报接口API以及全国所有地区代码(国家气象局提供)
    如何得到天气情况?在那个接口获取?
    Windows Update 时出现8024402C的错误
    OC中copy的使用
  • 原文地址:https://www.cnblogs.com/xuyaowen/p/notify-send.html
Copyright © 2011-2022 走看看