小编Dem*_*ler的帖子

如何清除shell脚本发送的通知

在我的脚本中,我向用户发送通知并提示他输入一些数据。之后我想清除之前发送的通知。通知应保留在托盘中,直到用户输入数据。

目前我正在使用notify-send,但只能通过超时才能清除。

我想要的是这样的:

send-notification --title="Hey, enter some data pls" --id=999
prompt-to-enter-data
delete-notification --id=999
Run Code Online (Sandbox Code Playgroud)

我正在使用 linux Mint 20。带有 cinnamon DE (v4.6.6)。

notify-osd未安装。

linux notifications shell-script cinnamon

6
推荐指数
1
解决办法
1848
查看次数

标签 统计

cinnamon ×1

linux ×1

notifications ×1

shell-script ×1