mahbinstuff/sortedmonofontpick.sh
2021-01-31 03:00:09 +02:00

14 lines
624 B
Bash
Executable file

#!/bin/zsh
MENU=mybemenu
#PICKST=$(ls ~/bin/st* | ${MENU} )
#PICKFOOT=
#F=$(fc-list :spacing=mono| cut -d: -f2 | sort | uniq | rofi -dmenu -i)
F=$(python ~/bin/fontsbyuse.py | ${MENU})
if [[ ${F} ]]; then
S=$(seq 24 -4 8 |sed -e '1 s/^/20\n/' | ${MENU})
C=$(ls ~/.config/foot/ | grep -v \~ | sort --sort=random | ${MENU})
#dmenu -l 8 -fn 'Px437_ATI_SmallW_6x8 NF:style=Book:pixelsize=16:antialias=true'`
python ~/bin/fontsbyuse.py -i "${F}"
foot -c ~/.config/foot/${C} -f "${F}-${S},Symbola-${S},Noto Color Emoji-${S}"
fi
#echo foot -c ~/.config/foot/${C} -f \"${F}-${S},Symbola-${S},Noto Color Emoji-${S}\"