The contrib service at https://brettterpstra.com/contrib renders a PNG of a GitHub user's contribution activity. Point --image at the generate URL and tune query parameters there.
Use launchd to run this script at the beginning of each week to update the chart.
Script (github-contributions-graph.sh)
#!/usr/bin/env bash# Updates a Terminal Widget (--target github) with a contrib graph PNG.set -euo pipefail
GITHUB_USERNAME="ttscoff"
widget-github(){localcontrib_root="https://brettterpstra.com/contrib"localgraph_url="${contrib_root}/generate?username=${GITHUB_USERNAME}&months=5&theme=sunset&width=600&caption_year=0&caption_month=0&caption_day=0&download=0"
terminal-widget --target github --image "${graph_url}" --padding 0 --bg 1d1128 --full-width "$@"}
widget-github