前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >gnome-shell 使用 notify-send 发送桌面消息

gnome-shell 使用 notify-send 发送桌面消息

作者头像
xuyaowen
发布2020-12-30 16:26:55
1.5K0
发布2020-12-30 16:26:55
举报
文章被收录于专栏:XUYAOWEN的专栏XUYAOWEN的专栏

什么是notify-send?

     notify-send - a program to send desktop notifications

怎么使用?

NAME
代码语言:javascript
复制
       notify-send - a program to send desktop notifications
SYNOPSIS
代码语言:javascript
复制
       notify-send [OPTIONS] <summary> [body]
DESCRIPTION
代码语言:javascript
复制
       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
代码语言:javascript
复制
       -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
代码语言:javascript
复制
       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 命令来进行显示使用说明:
代码语言:javascript
复制
➜  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等命令, 来进行定时发送消息,进行桌面和邮件通知。

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
原始发表:2018-06-25 ,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • NAME
  • SYNOPSIS
  • DESCRIPTION
  • OPTIONS
  • AUTHOR
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档