mahbinstuff/pickfontst.sh

16 lines
452 B
Bash
Raw Normal View History

#!/bin/zsh
# now uses a list I have made of available fonts that work well
PICK=`cat ~/bin/shellfonts.list |dmenu -i -l 25 -fn "ProggySquareTTSZ" -p "ST: Pick Font"`
2018-09-02 11:55:47 +03:00
SIZE=`echo 12,16,14,10,9,8,72 | sed s/,/\\\n/g | dmenu -p Size -fn mOsOul-16 -sb orange -sf navy`
if [[ $PICK ]]; then
2018-09-02 11:55:47 +03:00
FONT=$PICK:pixelsize="$SIZE":antialias=true:autohint=true
echo st -f $FONT
if [[ -f ~/bin/st-aardbei ]]; then
st-aardbei -f $FONT
else
st -f $FONT
fi
fi