client.yml 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  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. # Defaults below will be used when a topic does not have its own settings
  7. #
  8. # default-user:
  9. # default-password:
  10. # default-command:
  11. # Subscriptions to topics and their actions. This option is primarily used by the systemd service,
  12. # or if you cann "ntfy subscribe --from-config" directly.
  13. #
  14. # Example:
  15. # subscribe:
  16. # - topic: mytopic
  17. # command: /usr/local/bin/mytopic-triggered.sh
  18. # - topic: myserver.com/anothertopic
  19. # command: 'echo "$message"'
  20. # if:
  21. # priority: high,urgent
  22. # - topic: secret
  23. # command: 'notify-send "$m"'
  24. # user: phill
  25. # password: mypass
  26. #
  27. # Variables:
  28. # Variable Aliases Description
  29. # --------------- --------------------- -----------------------------------
  30. # $NTFY_ID $id Unique message ID
  31. # $NTFY_TIME $time Unix timestamp of the message delivery
  32. # $NTFY_TOPIC $topic Topic name
  33. # $NTFY_MESSAGE $message, $m Message body
  34. # $NTFY_TITLE $title, $t Message title
  35. # $NTFY_PRIORITY $priority, $prio, $p Message priority (1=min, 5=max)
  36. # $NTFY_TAGS $tags, $tag, $ta Message tags (comma separated list)
  37. # $NTFY_RAW $raw Raw JSON message
  38. #
  39. # Filters ('if:'):
  40. # You can filter 'message', 'title', 'priority' (comma-separated list, logical OR)
  41. # and 'tags' (comma-separated list, logical AND). See https://ntfy.sh/docs/subscribe/api/#filter-messages.
  42. #
  43. # subscribe: