Introduction
Mastodon notifier it's a simple rust application that connects to the user notification stream and send desktop notification.
Installation
With cargo
Connecting to Mastodon's API
mastodon-notifier needs to access the the Mastodon API of your instance.
Follow this instruction for configuring a mastodon-notifier:
-
First create an app on your instance at url
https://<instance_url>/settings/applicationswithreadscope checked and redirect uriurn:ietf:wg:oauth:2.0:oob. Once it's created you will seeClient KeyandClient Secret -
Run the
mastodon notifierfor configuring the account withmastodon-notifier --host <host> --user <user> --mode configand enter theClient Keyand theClient Secret. You will be redirected then to your instance for authorization. Once authorized your instance will show an authorization code that you need to provide to the configurator. The configuration is now complete andmastodon-notifierwill save the token in the user keyring.
Usage
The binary is named mastodon-notifier and can run as daemon which listens to user notification stream
and sends desktop notifications.
The daemon look in the keyring for the token associated to the account username@instance configured in the previous step.
If it's not available the daemon will wait until it's ready