The fastest way to set up push notifications on-demand
Go to file
2024-12-16 15:22:26 -05:00
ding Initial commit with actual script and README 2024-12-16 15:20:38 -05:00
LICENSE Initial commit 2024-12-16 18:42:03 +00:00
README.md Fix formatting in README 2024-12-16 15:22:26 -05:00

ding

The fastest way to set up push notifications on-demand using ntfy.sh. Install the ntfy.sh app on your phone, drop this script into your $PATH, set the topic on both ends, and you're done. Follow any long running command with ding to get a push notification when it finishes.

It's that easy. ntfy.sh does not require registration.

Installation

Copy script to a directory in your $PATH, such as /usr/local/bin

mv ding /usr/local/bin/ding

Edit the NTFY_TOPIC variable at the top of the file to a topic of your choosing.

# Define your ntfy.sh topic
NTFY_TOPIC="your-topic-name"

Treat this like a password. Anybody who knows the topic can see and send notifications.

How to Use It

Follow any long-running command with ding.

make && make install; ding

Options

Title

Any text after ding will become the title of the notification.

ding Task Completed.

Priority

Priority in ntfy.sh represents a "preset" for how intrusive the notification is. --min, --low, --high, and --max correspond to these options. Read the message priority docs for more information.