#!/bin/sh cd "$(dirname "$0")" if test "$#" -eq 0; then set -- for font in \ /usr/share/fonts/TTF/DejaVuSans.ttf \ /usr/share/fonts/TTF/Jigmo.ttf \ /usr/share/fonts/TTF/Jigmo2.ttf \ /usr/share/fonts/noto/NotoSansCJK-Regular.ttc do if test -f "$font"; then set -- "$@" "$font" fi done if test "$#" -eq 0; then echo "run.sh: no default font found; pass a font file" >&2 exit 1 fi fi pkill strans sleep 1 ./strans map "$@" & sleep 1 xim/strans-xim &