summaryrefslogtreecommitdiff
path: root/.local/bin/fpt
blob: e0f4271de4ef1a384b047c2fbb0750de5dd982fc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

PREVIEW_TEXT="ABCDEFGHIJKLM\n""\
NOPQRSTUVWXYZ\n""\
abcdefghijklm\n""\
nopqrstuvwxyz\n""\
1234567890\n""\
!@$\%(){}[]"

convert -size "532x365" xc:"#ffffff" \
  -gravity center \
  -pointsize 38 \
  -font "$1" \
  -fill "#000000" \
  -annotate +0+0 "$PREVIEW_TEXT" \
  -flatten "jpeg:-" | img2sixel