notify-send和terminal命令

我们以sudo apt-get install linux为例。

这是notify send命令:notify-send -i terminal Bash“execution complete”

我怎么能用整个sudo命令替换’bash’? 命令以粗体显示,标题为“执行完成”,在其下方显示为消息。 这将用作通知手段。 命令完成后,会出现显示消息的通知。

其他人使用“; alert”来利用notify-send。 notify-send -i terminal Bash“执行完成”被保存为别名’alert’,为了方便起见,我想添加到别名中。

使用html代码格式化文本

notify-send -i terminal "'bash -c ls'" "execution complete" 

使用您希望的命令更改单引号中的内容,随意将大小和颜色更改为您希望的内容。

如果您需要帮助,请发布您的代码以及有关您希望更改的更多详细信息