1
0
Fork 0
mirror of https://github.com/binwiederhier/ntfy.git synced 2025-05-22 23:07:36 +02:00
This commit is contained in:
Philipp Heckel 2021-11-08 20:15:13 -05:00
parent b9b53bcdf0
commit 4d48c5dc34
4 changed files with 15 additions and 0 deletions
examples/linux-desktop-notifications

View 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)