···5151 # Status notifications via `notify-send`
5252 notify = true;
53535454+ # The command to use for sending notifications, view a cool example below!
5555+ notifier = "notify-send";
5656+5457 # Rui falls back on the `FLAKE_EDITOR` and `EDITOR` environment variables
5558 editor = "code";
5659···7982 hash = "..."; # Use the current commit sha256 hash
8083 }
8184)).packages.${builtins.currentSystem}.default
8585+```
8686+8787+## Custom Notification Command Example
8888+8989+Rui uses `notify-send` by default for sending notifications, but you can set
9090+the `notifier` configuration value to any file path. Here's an example of a
9191+distributed notification script that sends notifications to your phone **and**
9292+your PC. This can easily be adapted to send notifications to any service, e.g.,
9393+Telegram, Discord, other webhook receivers, etc.
9494+9595+This example uses [Bark](https://bark.day.app/#/?id=%E6%BA%90%E7%A0%81), an
9696+extremely simple and easy-to-use notification service for iOS devices.
9797+9898+```sh
9999+#!/usr/bin/env dash
100100+101101+# Send a notification to your host PC
102102+notify-send "$1" "$2"
103103+104104+# Send a notification to your iOS device
105105+curl -X "POST" "https://api.day.app/your_bark_api_key" \
106106+ -H 'Content-Type: application/json; charset=utf-8' \
107107+ --silent \
108108+ -d '{
109109+ "body": "'"${2}"'",
110110+ "title": "'"${1}"'",
111111+ "icon": "https://nixos.wiki/images/thumb/2/20/Home-nixos-logo.png/207px-Home-nixos-logo.png"
112112+ }'
82113```
8311484115## `--help`