An open API service indexing awesome lists of open source software.

https://github.com/9elt/notif

Run a script on notifications (when their pop up disappears) on macOS Sequoia 15+
https://github.com/9elt/notif

macos notifications

Last synced: 4 months ago
JSON representation

Run a script on notifications (when their pop up disappears) on macOS Sequoia 15+

Awesome Lists containing this project

README

          

# Notif

Run a script on notifications (when their pop up disappears) on macOS Sequoia 15+

## Installation

```
$ npm i -g @9elt/notif
```

## Example usage

```
$ sudo chmod +x example.sh
$ notif example.sh &
```

_example.sh_

```sh
#!/bin/sh

ID="$1"
APP="$2"
TITLE="$3"
SUBTITLE="$4"
BODY="$5"
DATE="$6"

# do something ...
```