Files
blomarchy/bin/blob-font-current

10 lines
314 B
Bash
Executable File

#!/bin/bash
# blob:summary=Show current monospace font
# blob:examples=blob font current
# fontconfig is the source of truth. fc-match returns a comma-separated
# alias list (e.g. "JetBrainsMono Nerd Font,JetBrainsMono NF") so take
# the first entry.
fc-match monospace -f '%{family}\n' | head -n1 | cut -d, -f1