Hyprnote
Hello World!

Hooks

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-dir
string
Path to the resource directory.
--app-hyprnote
string
Application-specific Hyprnote data.
--app-meeting
stringoptional
Optional meeting-specific data.

beforeListeningStarted

Arguments passed to hooks triggered before listening starts.

Arguments

--resource-dir
string
Path to the resource directory.
--app-hyprnote
string
Application-specific Hyprnote data.
--app-meeting
stringoptional
Optional meeting-specific data.