Move ntfy to desktop again

This commit is contained in:
Leon Grünewald 2024-02-22 12:06:31 +01:00
parent 9d55d3faaf
commit c8c40ec1b4
2 changed files with 6 additions and 59 deletions

View file

@ -48,9 +48,15 @@ default-password: 1bims
# and 'tags' (comma-separated list, logical AND). See https://ntfy.sh/docs/subscribe/api/#filter-messages.
#
subscribe:
- topic: 'leon-general'
command: 'notify-send "$t" "$m"'
- topic: 'leon-services'
command: 'notify-send "$t" "$m"'
- topic: 'bonmercato-alerts'
command: 'notify-send "$t" "$m"'
user: bonmercato
password: bonmercato
- topic: 'bonmercato-imports'
command: 'notify-send "$t" "$m"'
user: bonmercato
password: bonmercato

View file

@ -1,59 +0,0 @@
# ntfy client config file
# Base URL used to expand short topic names in the "ntfy publish" and "ntfy subscribe" commands.
# If you self-host a ntfy server, you'll likely want to change this.
#
default-host: https://ntfy.413.one
# Default username and password will be used with "ntfy publish" if no credentials are provided on command line
# Default username and password will be used with "ntfy subscribe" if no credentials are provided in subscription below
# For an empty password, use empty double-quotes ("")
#
default-user: leon
default-password: 1bims
# Default command will execute after "ntfy subscribe" receives a message if no command is provided in subscription below
# default-command:
# Subscriptions to topics and their actions. This option is primarily used by the systemd service,
# or if you cann "ntfy subscribe --from-config" directly.
#
# Example:
# subscribe:
# - topic: mytopic
# command: /usr/local/bin/mytopic-triggered.sh
# - topic: myserver.com/anothertopic
# command: 'echo "$message"'
# if:
# priority: high,urgent
# - topic: secret
# command: 'notify-send "$m"'
# user: phill
# password: mypass
#
# Variables:
# Variable Aliases Description
# --------------- --------------------- -----------------------------------
# $NTFY_ID $id Unique message ID
# $NTFY_TIME $time Unix timestamp of the message delivery
# $NTFY_TOPIC $topic Topic name
# $NTFY_MESSAGE $message, $m Message body
# $NTFY_TITLE $title, $t Message title
# $NTFY_PRIORITY $priority, $prio, $p Message priority (1=min, 5=max)
# $NTFY_TAGS $tags, $tag, $ta Message tags (comma separated list)
# $NTFY_RAW $raw Raw JSON message
#
# Filters ('if:'):
# You can filter 'message', 'title', 'priority' (comma-separated list, logical OR)
# and 'tags' (comma-separated list, logical AND). See https://ntfy.sh/docs/subscribe/api/#filter-messages.
#
subscribe:
- topic: leon-general
command: 'notify-send "$t" "$m"'
- topic: leon-services
command: 'notify-send "$t" "$m"'
- topic: bonmercato-alerts
command: 'notify-send "$t" "$m"'
user: bonmercato
password: bonmercato