NAME
xico - make images from unicode characters or user custom config
SYNOPSIS
xico [-h | --help] [-c | --config FILE] [-i | --input CHAR [-] FILE];
DESCRIPTION
xico is a simple cli tool to make images from unicode glyphs
with no FILE, or when FILE is -, read standard input
output can only be png or svg
define a collection of jobs in user config "$XDG_CONFIG_HOME/xico/xico.conf"
or specify alternative configuration file to use with "-c | --config FILE"
OPTIONS
-i, --input <CHAR> <FILE> image character & destination-path
-c, --config <FILE> specify alternative configuration file to use
-h, --help display help
# -b, --background [TODO] image background color
# -f, --foreground [TODO] image foreground color
# -s, --size [TODO] image size
EXAMPLES
# convert one character
xico -i ๐บ lambda.png
# process with user configuration file
xico
# process with alternative configuration file
xico -c awesome-xico.conf
CONFIGURATION
xico looks for the configuration file at the following paths
1. "$XDG_CONFIG_HOME/xico/xico.conf"
2. "$XDG_CONFIG_HOME/xico.conf"
3. "$HOME/.xico.conf"
simple key value options with at least one blank character (<Space> or <Tab>)
this section documents the root level of the configuration file
# default size (mm)
size 500
# default bg (rgba|transparent)
bg transparent
# default font (monospace)
font monospace
# define logical groups
# relative to working directory
โจท ./error.png
๐ต ./foo/micro.png
# absolute path
แฎท ~/dev/acme/assets/ico/head_1.png
แณ
~/dev/acme/assets/ico/head_2.png
# use env variables
๐ฃ /tmp/curve_${RANDOM}.png
๐ฃ ${XDG_CONFIG_HOME}/xyzzy/curve.png
# the missing directories will be created
๐ฐ ~/pics/fuga/edge_1.png
๐ฐ ~/pics/fuga/edge_2.png
# set a base path for remaining items
base ~/pics/widgets
# the example bellow will write to
# ~/pics/widgets/char_a.png
# ~/pics/widgets/char_e.png
# ~/pics/widgets/char_f.png
๐ขด char_a.png
๐ขฆ char_e.png
๐ขข char_f.png
# reset the base path
base ~/.config/frob
# the example bellow will write to
# ~/.config/frob/hoge.png
# ~/.config/frob/state/nyoro.png
ใ hoge.png
ใ state/nyoro.png
ENVIRONMENT.VARIABLES
XICO_SILENT | less verbose
XICO_DEBUG | debug mode
SEE.ALSO
inkscape(1)
AUTHOR
metaory <metaory@gmail.com>, Apr 2024
- clone repo
- give execution permissions
- place it in your path
# Clone the repo
git clone git@github.com:metaory/xico.git
# Navigate to repo
cd xico
# Give execution permissions
chmod +x xico
# Link it somewhere in your PATH
ln -sfv xico /usr/bin/xico
# Use it anywhere
# Usage
xico --help
โโโโโโโโโโโโโ
โโโโโโโโโโโโโ
MIT