client.yml 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # ntfy client config file
  2. # Base URL used to expand short topic names in the "ntfy publish" and "ntfy subscribe" commands.
  3. # If you self-host a ntfy server, you'll likely want to change this.
  4. #
  5. # default-host: https://ntfy.sh
  6. # Subscriptions to topics and their actions. This option is primarily used by the systemd service,
  7. # or if you cann "ntfy subscribe --from-config" directly.
  8. #
  9. # Example:
  10. # subscribe:
  11. # - topic: mytopic
  12. # command: /usr/local/bin/mytopic-triggered.sh
  13. # - topic: myserver.com/anothertopic
  14. # command: 'echo "$message"'
  15. # if:
  16. # priority: high,urgent
  17. # - topic: secret
  18. # command: 'notify-send "$m"'
  19. # user: phill
  20. # password: mypass
  21. #
  22. # Variables:
  23. # Variable Aliases Description
  24. # --------------- --------------------- -----------------------------------
  25. # $NTFY_ID $id Unique message ID
  26. # $NTFY_TIME $time Unix timestamp of the message delivery
  27. # $NTFY_TOPIC $topic Topic name
  28. # $NTFY_MESSAGE $message, $m Message body
  29. # $NTFY_TITLE $title, $t Message title
  30. # $NTFY_PRIORITY $priority, $prio, $p Message priority (1=min, 5=max)
  31. # $NTFY_TAGS $tags, $tag, $ta Message tags (comma separated list)
  32. # $NTFY_RAW $raw Raw JSON message
  33. #
  34. # Filters ('if:'):
  35. # You can filter 'message', 'title', 'priority' (comma-separated list, logical OR)
  36. # and 'tags' (comma-separated list, logical AND). See https://ntfy.sh/docs/subscribe/api/#filter-messages.
  37. #
  38. # subscribe: