FollieHiyuki ef76692015
Various user configs
+ vifm: improve preview scripts
+ lite-xl: change fonts' locations
+ neovim: update config for nvim-tree.lua
2021-10-17 21:48:13 +07:00

19 lines
495 B
Bash
Executable File

#!/bin/sh
PREVIEW_TEXT="ABCDEFGHIJKLM\nNOPQRSTUVWXYZ\nabcdefghijklm\nnopqrstuvwxyz\n1234567890\n!@$\%<>(){}[]\n== != => <=\n愛してるおかえりなさい\n      \n😀👌🙋🐱🦀⛈ 🏀🛠"
BG="#2e3440"
FG="#eceff4"
if [ "$#" -ne 2 ]; then
echo "Usage: $0 filename output_image"
exit 1
fi
convert -size 800x800 xc:"$BG" \
-gravity center \
-pointsize 40 \
-font "$1" \
-fill "$FG" \
-annotate +0+0 "$PREVIEW_TEXT" \
-flatten "$2"