tldr/pages/linux/notify-send.md

20 lines
521 B
Markdown
Raw Normal View History

2016-01-25 14:50:52 +00:00
# notify-send
2016-01-26 05:24:26 +00:00
> Uses the current desktop environment's notification system to create a notification.
2016-01-25 14:50:52 +00:00
2016-01-29 13:28:47 +00:00
- Show 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-25 14:50:52 +00:00
2016-01-29 13:28:47 +00:00
- Show a notification with a custom icon:
2016-01-25 14:50:52 +00:00
`notify-send -i {{icon.png}} "{{Test}}" "{{This is a test}}"`
2016-01-25 14:50:52 +00:00
2016-01-29 13:28:47 +00:00
- Show a notification for 5 seconds:
2016-01-25 14:50:52 +00:00
`notify-send -t 5000 "{{Test}}" "{{This is a test}}"`
- Show a notification with an app's icon:
`notify-send "{{Test}}" --icon={{google-chrome}}`