what is notify-send (Ubuntu)
来源:互联网 发布:mac os黑苹果系统 编辑:程序博客网 时间:2024/05/20 21:20
I am try to use Thunderbird of my Email client. but I found the notify time is too short when a new message coming. so I try to modify it....
the notify-send !
This was pretty cool , Wanted to share with you all !!!!
Notify-send is a great application for notifying you when an event has occurred. An event such as a script running to completion.
If notify-send is not installed on your machine already, install the package "libnotify1" (or possibly just "libnotify") and "libnotify-bin" from your repositories.
Once installed you can simply type the following, at the command line, to display a pop-up message near your system tray:
notify-send "hello"
By default the message will be displayed for 5 seconds. To change how long a message stays displayed use the "-t" switch. This will change, in milliseconds, how long the message is displayed. Enter "-t 0" to leave the message up until the user closes it.
notify-send "This message will be displayed for 3 seconds" -t 3000
notify-send "Click me to close me." -t 0
You can even add a title and an icon to the notification.
notify-send "This is the Title" /
"Check out the cool icon" /
-i /usr/share/pixmaps/gnome-terminal.png
When used in a script you could set it to notify you periodically by placing the command in a loop:
#!/bin/bash
while [ 1 ]; do
notify-send "Up Time" "`uptime`"
sleep 5m
done
- what is notify-send (Ubuntu)
- What is Ubuntu?
- notify-send focus follow
- crontab 和 notify-send
- What is what ?!
- what is what?
- 在脚本中使用notify-send
- 使用notify-send发送桌面通知
- 使用notify-send发送桌面通知
- What is portal? & What is portlet?
- what is game? what is good game?
- What Is 'SSL'? What Is 'SSH'?
- Send email in ubuntu
- WHAT IS C#
- What is System Administration?
- What is EDI?
- What Is Wiki
- What is Struts Resume?
- 游戏引擎基础(十一)(最后的章节)
- 数据结构之栈
- 标准IO与文件IO 的区别
- 一头磕死算了
- 月薪4K,在IT行业算什么水平?
- what is notify-send (Ubuntu)
- ubuntu 9.04 安装 thunderbird-3.0 和最小化插件
- 创建单向链表
- android 调试中 addr2line 命令的使用
- 前路钉板系统在重建胸腰段稳定性中应用 [已发表]
- Solaris系统 sudo 执行脚本是无法传递环境变量
- 在理性与感性中挣扎
- gcc的 printf 和 缓冲区的问题(关于fflush 函数)
- Validation 问题域