From 99171c95122a54abaa9b7d3113efd41ac23a2a4b Mon Sep 17 00:00:00 2001 From: clsty Date: Tue, 18 Nov 2025 22:15:49 +0800 Subject: [PATCH] Add install_google_sans_flex (#2509) --- sdata/subcmd-install/3.files-legacy.sh | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/sdata/subcmd-install/3.files-legacy.sh b/sdata/subcmd-install/3.files-legacy.sh index a94da02a9..3ae8de2b9 100644 --- a/sdata/subcmd-install/3.files-legacy.sh +++ b/sdata/subcmd-install/3.files-legacy.sh @@ -87,6 +87,25 @@ function install_dir__skip_existed(){ v rsync_dir $s $t fi } +function install_google_sans_flex(){ + local font_name="Google Sans Flex" + local src_name="google-sans-flex" + local src_url="https://github.com/end-4/google-sans-flex" + local src_dir="$REPO_ROOT/cache/$src_name" + local target_dir="${XDG_DATA_HOME}/fonts/illogical-impulse-$src_name" + if ! fc-list | grep -qi "$font_name"; then + x mkdir -p $src_dir + x cd $src_dir + try git init -b main + try git remote add origin $src_url + x git pull origin main + x git submodule update --init --recursive + warning_overwrite + rsync_dir "$src_dir" "$target_dir" + x fc-cache -fv + x cd $REPO_ROOT + fi +} ##################################################################################### # In case some dirs does not exists @@ -172,6 +191,7 @@ case "${SKIP_HYPRLAND}" in esac install_file "dots/.local/share/icons/illogical-impulse.svg" "${XDG_DATA_HOME}"/icons/illogical-impulse.svg +install_google_sans_flex v dedup_and_sort_listfile "${INSTALLED_LISTFILE}" "${INSTALLED_LISTFILE}" v gen_firstrun