From cb1550792189a86d08a7b764c710ab47451554c4 Mon Sep 17 00:00:00 2001 From: Rakesh Das Date: Mon, 25 Jan 2016 08:50:52 -0600 Subject: [PATCH 1/4] Added notify-send --- pages/linux/notify-send.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 pages/linux/notify-send.md diff --git a/pages/linux/notify-send.md b/pages/linux/notify-send.md new file mode 100644 index 000000000..1ad9825ee --- /dev/null +++ b/pages/linux/notify-send.md @@ -0,0 +1,15 @@ +# notify-send + +Uses the current desktop environment's notification system to create a notification. + +- Sends out a notification with the title "Test" and the content "This is a test" + +`notify-send {{"Test"}} {{"This is a test"}}` + +- Sends out a notification with the title "Test", the content "This is a test", and the icon icon.png + +`notify-send -i ./icon.png {{"Test"}} {{"This is a test"}}` + +- Sends out a notification with the title "Test", the content "This is a test", and the notification shows up for 5 seconds + +`notify-send -t 5000 {{"Test"}} {{"This is a test"}}` From 054f36d47575933cecfe166244086bdf2931b5fa Mon Sep 17 00:00:00 2001 From: Rakesh Das Date: Mon, 25 Jan 2016 23:18:45 -0600 Subject: [PATCH 2/4] Added notify-send --- pages/linux/notify-send.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/linux/notify-send.md b/pages/linux/notify-send.md index 1ad9825ee..80f7a6333 100644 --- a/pages/linux/notify-send.md +++ b/pages/linux/notify-send.md @@ -2,14 +2,14 @@ Uses the current desktop environment's notification system to create a notification. -- Sends out a notification with the title "Test" and the content "This is a test" +- Send out a notification with the title "Test" and the content "This is a test": `notify-send {{"Test"}} {{"This is a test"}}` -- Sends out a notification with the title "Test", the content "This is a test", and the icon icon.png +- Send out a notification with the title "Test", the content "This is a test", and the icon icon.png: `notify-send -i ./icon.png {{"Test"}} {{"This is a test"}}` -- Sends out a notification with the title "Test", the content "This is a test", and the notification shows up for 5 seconds +- Send out a notification with the title "Test", the content "This is a test", and the notification shows up for 5 seconds: `notify-send -t 5000 {{"Test"}} {{"This is a test"}}` From 5b6a4c8bf95c4f88290321c3db12b2cf744dd978 Mon Sep 17 00:00:00 2001 From: Rakesh Das Date: Mon, 25 Jan 2016 23:24:26 -0600 Subject: [PATCH 3/4] Added notify-send --- pages/linux/notify-send.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/linux/notify-send.md b/pages/linux/notify-send.md index 80f7a6333..b77db4c44 100644 --- a/pages/linux/notify-send.md +++ b/pages/linux/notify-send.md @@ -1,6 +1,6 @@ # notify-send -Uses the current desktop environment's notification system to create a notification. +> Uses the current desktop environment's notification system to create a notification. - Send out a notification with the title "Test" and the content "This is a test": From 0ed875b817231ff4c7c0c5ef124fc2e62c990b4d Mon Sep 17 00:00:00 2001 From: Ruben Vereecken Date: Fri, 29 Jan 2016 14:28:47 +0100 Subject: [PATCH 4/4] Reworked notify-send to my liking --- pages/linux/notify-send.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pages/linux/notify-send.md b/pages/linux/notify-send.md index b77db4c44..4083cfe01 100644 --- a/pages/linux/notify-send.md +++ b/pages/linux/notify-send.md @@ -2,14 +2,14 @@ > Uses the current desktop environment's notification system to create a notification. -- Send out a notification with the title "Test" and the content "This is a test": +- Show a notification with the title "Test" and the content "This is a test": `notify-send {{"Test"}} {{"This is a test"}}` -- Send out a notification with the title "Test", the content "This is a test", and the icon icon.png: +- Show a notification with a custom icon: -`notify-send -i ./icon.png {{"Test"}} {{"This is a test"}}` +`notify-send -i {{icon.png}} {{"Test"}} {{"This is a test"}}` -- Send out a notification with the title "Test", the content "This is a test", and the notification shows up for 5 seconds: +- Show a notification for 5 seconds: `notify-send -t 5000 {{"Test"}} {{"This is a test"}}`