Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Who23/nchook
🪝 A hook into MacOS's notification center.
https://github.com/Who23/nchook
Last synced: 3 months ago
JSON representation
🪝 A hook into MacOS's notification center.
- Host: GitHub
- URL: https://github.com/Who23/nchook
- Owner: Who23
- License: mit
- Created: 2021-02-24T04:25:18.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2023-01-15T05:47:31.000Z (almost 2 years ago)
- Last Synced: 2024-05-15T04:35:25.519Z (6 months ago)
- Language: Python
- Homepage:
- Size: 1.76 MB
- Stars: 21
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# nchook
A hook into macOS's notification center, to run a script when a notification sent.
![On a notification being sent, the hook script is triggered which sends the app, title, body, and time of the notification o a listening netcat server](demo.gif)
## Installation
With homebrew:
`brew install who23/formulae/nchook`## Usage
Start the nchook daemon with `brew services start nchook`Create or symlink an executable file at `~/.config/nchook/nchook_script`. This script will
be run as `nchook_script APP TITLE BODY TIME`. Note that TIME is a unix timestamp in
seconds.