#!/usr/bin/env bash if ! which -s jq;then printf 'jq is not installed\n' exit 1 fi #exit 0 json_cache="${HOME}/.cache/nerfont-cheatsheet.json" if [[ ! $(find "${json_cache}" -cmin -10080 -print 2>/dev/null) ]]; then curl 'https://raw.githubusercontent.com/ryanoasis/nerd-fonts/refs/heads/master/glyphnames.json' -o "${json_cache}" fi jq -r 'to_entries[] | "\(.value.char) - \(.key)"' "${json_cache}" | tail +2 | wofi --dmenu | awk '{print $1}' | wl-copy