makes your fedi display name count down to a date
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
mark e5df1b3f08 add varying behavior for before/during/after the countdown date 1 month ago
.gitignore more initial stuff 1 month ago
README.md add varying behavior for before/during/after the countdown date 1 month ago
UNLICENSE.txt more initial stuff 1 month ago
config.example.sh add varying behavior for before/during/after the countdown date 1 month ago
namecountdown.sh add varying behavior for before/during/after the countdown date 1 month ago

README.md

namecountdown

make your fedi display name count down to a date

dependencies

  • jq
  • curl
  • bash

how

  1. update the settings in config.example.sh with the following
    • INSTANCE_URL - instance url
    • ACCESS_TOKEN - access token
    • NAME_PATTERN - display name pattern, the string {} will be replaced with the countdown timer
    • ON_DATE_NAME - display name to set on the date that is being counted down to. this is just a static name. no date difference substitution is performed here (it would always be 0 anyway)
    • COUNTDOWN_DATE - the date to count down to, in some form that date -d will understand
  2. rename config.example.sh to config.sh
  3. run namecountdown.sh -d to dry run and print the display name it should change to
  4. run namecountdown.sh to actually update your display name

if the date to count down to has passed, the script does nothing

you'll probably want to put this on a cron job or something to update every day

enjoy