#!/bin/sh # see xfontsel, xfd(1), xlsfonts, fc-list, fonts-conf(5) # joostvb@nusku:~% xlsfonts | wc -l # 14837 # joostvb@nusku:~% fc-list | wc -l # 3010 # xlsfonts -l | grep all | egrep -v bold\|koi8\|condensed # fndry fmly wght slant sWdth adstyl pxlsz ptSz resx resy spc avgWdth rgstry encdng # ^^^^ ## stterm -f "-*-courier-medium-r-normal-*-0-240-*-*-*-0-*-utf8" case "$1" in large) command -v stterm >/dev/null && exec stterm -f "-*-courier-*-*-*-*-*-110-*-*-*-*-*-*" ;; LARGE|Large) # big font, tested on debian 9/stretch command -v stterm >/dev/null && exec stterm -f "-*-courier-*-*-*-*-*-180-*-*-*-*-*-*" ;; big) exec st -f "-*-courier-*-*-*-*-*-240-*-*-*-*-*-*" ;; BIG|Big) # pretty huge font: 7 lines on a screen exec st -f "-*-courier-*-*-*-*-*-480-*-*-*-*-*-*" ;; huge|HUGE|Huge) # HUGE : only 3 lines fit on my screen exec st -f "-*-courier-*-*-*-*-*-1920-*-*-*-*-*-*" ;; *) width=$( xdpyinfo| grep dimensions | cut -dx -f1 | while read d s; do echo $s; done ) # screen not wide test $width -le 1367 && exec st -f "-*-courier-*-*-*-*-*-120-*-*-*-*-*-*" # big font, tested on debian 10/buster command -v st >/dev/null && exec st -f "-*-courier-*-*-*-*-*-140-*-*-*-*-*-*" ;; esac