mirror of
https://github.com/binwiederhier/ntfy.git
synced 2025-05-22 23:07:36 +02:00
Examples
This commit is contained in:
parent
b9b53bcdf0
commit
4d48c5dc34
4 changed files with 15 additions and 0 deletions
examples/linux-desktop-notifications
7
examples/linux-desktop-notifications/notify-desktop.sh
Normal file
7
examples/linux-desktop-notifications/notify-desktop.sh
Normal file
|
@ -0,0 +1,7 @@
|
|||
#!/bin/bash
|
||||
# This is an example shell script showing how to consume a ntfy.sh topic using
|
||||
# a simple script. The notify-send command sends any arriving message as a desktop notification.
|
||||
|
||||
while read msg; do
|
||||
[ -n "$msg" ] && notify-send "$msg"
|
||||
done < <(stdbuf -i0 -o0 curl -s ntfy.sh/mytopic/raw)
|
Loading…
Add table
Add a link
Reference in a new issue