From f4c4550e327d9090c82a735d39d104d0bedb602d Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sun, 30 Mar 2025 01:00:51 -0400 Subject: Loads of laptop shit --- .local/bin/fpt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100755 .local/bin/fpt (limited to '.local/bin/fpt') diff --git a/.local/bin/fpt b/.local/bin/fpt new file mode 100755 index 0000000..e0f4271 --- /dev/null +++ b/.local/bin/fpt @@ -0,0 +1,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 -- cgit v1.2.3