Overview
Hooks let you observe and react to the Hyprnote's lifecycle using custom scripts.
Config
vi "$HOME/Library/Application Support/hyprnote/hooks.json"
{
"version": 1,
"hooks": {
"afterListeningStopped": [{ "command": "./hooks/demo.sh" }]
}
}
vi "$HOME/Library/Application Support/hyprnote/hooks/demo.sh"
chmod +x "$HOME/Library/Application Support/hyprnote/hooks/demo.sh"
#!/bin/bash
cat > /dev/null
exit 0
Available Hooks
afterListeningStopped
Arguments passed to hooks triggered after listening stops.
Arguments
--resource-dirstring
Path to the resource directory.
--app-hyprnotestring
Application-specific Hyprnote data.
--app-meetingstringoptional
Optional meeting-specific data.
beforeListeningStarted
Arguments passed to hooks triggered before listening starts.
Arguments
--resource-dirstring
Path to the resource directory.
--app-hyprnotestring
Application-specific Hyprnote data.
--app-meetingstringoptional
Optional meeting-specific data.