Skip to content

notify-send

目录

笔记

notify-send 是一个命令行工具,用于在桌面上显示通知消息。

安装

bash
sudo apt update
sudo apt install libnotify-bin

使用

bash
notify-send "标题" "消息内容"

# 优先级
notify-send -u critical "重要通知" "这个消息很重要。"
notify-send -u normal "普通通知" "这个消息是普通优先级。"
notify-send -u low "低优先级通知" "这个消息是低优先级。"

# 指定图标
notify-send -i /path/to/icon.png "标题" "消息内容"
# 制定系统图标(系统图标在 /usr/share/icons/...)   
notify-send -i dialog-information "标题" "消息内容"
————————————————
版权声明:本文为 田园幻想乡 的原创文章,遵循 CC 4.0 BY-NC-SA 版权协议,转载请附上原文出处链接及本声明。
原文链接: http://truraly.fun/学习笔记/ubuntu/软件的安装以及使用/notify-send.html


本页近半年访问量: 查询中……

发布时间:

最后更新时间:

Copyright © 2022 田园幻想乡 浙ICP备2021038778号-1