forked from Shinonome/dots-hyprland
Rename var
This commit is contained in:
@@ -83,10 +83,10 @@ for pattern in "${patterns[@]}"; do
|
||||
condition=$(echo "$pattern" | yq '.condition // "true"')
|
||||
|
||||
# Handle fontconfig fontset override
|
||||
# If II_FONTSET_NAME is set and this is the fontconfig pattern, use the fontset instead
|
||||
if [[ "$from" == "dots/.config/fontconfig" ]] && [[ -n "${II_FONTSET_NAME:-}" ]]; then
|
||||
from="dots-extra/fontsets/${II_FONTSET_NAME}"
|
||||
echo "Using fontset \"${II_FONTSET_NAME}\" for fontconfig"
|
||||
# If FONTSET_DIR_NAME is set and this is the fontconfig pattern, use the fontset instead
|
||||
if [[ "$from" == "dots/.config/fontconfig" ]] && [[ -n "${FONTSET_DIR_NAME:-}" ]]; then
|
||||
from="dots-extra/fontsets/${FONTSET_DIR_NAME}"
|
||||
echo "Using fontset \"${FONTSET_DIR_NAME}\" for fontconfig"
|
||||
fi
|
||||
|
||||
# Check if pattern should be processed
|
||||
|
||||
@@ -103,9 +103,9 @@ esac
|
||||
case $SKIP_FONTCONFIG in
|
||||
true) sleep 0;;
|
||||
*)
|
||||
case "$II_FONTSET_NAME" in
|
||||
case "$FONTSET_DIR_NAME" in
|
||||
"") warning_rsync_delete; v rsync -av --delete dots/.config/fontconfig/ "$XDG_CONFIG_HOME"/fontconfig/ ;;
|
||||
*) warning_rsync_delete; v rsync -av --delete dots-extra/fontsets/$II_FONTSET_NAME/ "$XDG_CONFIG_HOME"/fontconfig/ ;;
|
||||
*) warning_rsync_delete; v rsync -av --delete dots-extra/fontsets/$FONTSET_DIR_NAME/ "$XDG_CONFIG_HOME"/fontconfig/ ;;
|
||||
esac;;
|
||||
esac
|
||||
|
||||
|
||||
@@ -57,7 +57,7 @@ patterns:
|
||||
- from: "dots/.local/share/konsole"
|
||||
to: "$XDG_DATA_HOME/konsole"
|
||||
mode: "soft"
|
||||
# Fontconfig (default - fontsets handled separately if II_FONTSET_NAME is set)
|
||||
# Fontconfig (default - fontsets handled separately if FONTSET_DIR_NAME is set)
|
||||
- from: "dots/.config/fontconfig"
|
||||
to: "$XDG_CONFIG_HOME/fontconfig"
|
||||
mode: "sync"
|
||||
|
||||
@@ -81,7 +81,7 @@ while true ; do
|
||||
## Ones with parameter
|
||||
--fontset)
|
||||
if [[ -d "${REPO_ROOT}/dots-extra/fontsets/$2" ]];
|
||||
then echo "Using fontset \"$2\".";II_FONTSET_NAME="$2";shift 2
|
||||
then echo "Using fontset \"$2\".";FONTSET_DIR_NAME="$2";shift 2
|
||||
else echo "Wrong argument for $1.";exit 1
|
||||
fi;;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user