init of script to check installed fonts
This commit is contained in:
26
scripts/dependencies.sh
Executable file
26
scripts/dependencies.sh
Executable file
@@ -0,0 +1,26 @@
|
||||
#!/bin/sh
|
||||
|
||||
|
||||
echo fonts
|
||||
|
||||
echo
|
||||
nftag=$(curl https://api.github.com/repos/ryanoasis/nerd-fonts/releases/latest -s | jq .name -r)
|
||||
# wget https://github.com/ryanoasis/nerd-fonts/releases/download/$nftag/NerdFontsSymbolsOnly.tar.xz
|
||||
echo "Symbols Nerd Font, version online: $nftag"
|
||||
|
||||
font_version () {
|
||||
fc-query -f '%{fontversion}\n' "$1" | perl -E 'printf "%.3f\n", <>/65536.0'
|
||||
}
|
||||
font_version_file () {
|
||||
echo "$1: $(font_version $1)"
|
||||
}
|
||||
font_version_file_pipe () {
|
||||
for i in $(cat /dev/stdin); do
|
||||
# echo $i
|
||||
font_version_file "$i"
|
||||
done
|
||||
}
|
||||
|
||||
echo
|
||||
echo "Kepler Font, version local:"
|
||||
find /home/daniel/repos/emacs-conf/.emacs.d/scripts/fonts -iname "*.otf" | font_version_file_pipe
|
||||
Reference in New Issue
Block a user