This script allows you to post a message to Mastodon from the command line. It reads the message from the command line argument or standard input. It uses the curl command to interact with the Mastodon API.
In order to use this script you need to create an encrypted token file called token.gpg
in the directory ~/.config/mastodon/
and put your access token in it. You can encrypt the token using gpg.