tldr/pages/linux/notify-send.md

16 lines
574 B
Markdown
Raw Normal View History

2016-01-25 14:50:52 +00:00
# notify-send
Uses the current desktop environment's notification system to create a notification.
2016-01-26 05:18:45 +00:00
- Send out a notification with the title "Test" and the content "This is a test":
2016-01-25 14:50:52 +00:00
`notify-send {{"Test"}} {{"This is a test"}}`
2016-01-26 05:18:45 +00:00
- Send out a notification with the title "Test", the content "This is a test", and the icon icon.png:
2016-01-25 14:50:52 +00:00
`notify-send -i ./icon.png {{"Test"}} {{"This is a test"}}`
2016-01-26 05:18:45 +00:00
- Send out a notification with the title "Test", the content "This is a test", and the notification shows up for 5 seconds:
2016-01-25 14:50:52 +00:00
`notify-send -t 5000 {{"Test"}} {{"This is a test"}}`