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"')
|
condition=$(echo "$pattern" | yq '.condition // "true"')
|
||||||
|
|
||||||
# Handle fontconfig fontset override
|
# Handle fontconfig fontset override
|
||||||
# If II_FONTSET_NAME is set and this is the fontconfig pattern, use the fontset instead
|
# If FONTSET_DIR_NAME is set and this is the fontconfig pattern, use the fontset instead
|
||||||
if [[ "$from" == "dots/.config/fontconfig" ]] && [[ -n "${II_FONTSET_NAME:-}" ]]; then
|
if [[ "$from" == "dots/.config/fontconfig" ]] && [[ -n "${FONTSET_DIR_NAME:-}" ]]; then
|
||||||
from="dots-extra/fontsets/${II_FONTSET_NAME}"
|
from="dots-extra/fontsets/${FONTSET_DIR_NAME}"
|
||||||
echo "Using fontset \"${II_FONTSET_NAME}\" for fontconfig"
|
echo "Using fontset \"${FONTSET_DIR_NAME}\" for fontconfig"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if pattern should be processed
|
# Check if pattern should be processed
|
||||||
|
|||||||
@@ -103,9 +103,9 @@ esac
|
|||||||
case $SKIP_FONTCONFIG in
|
case $SKIP_FONTCONFIG in
|
||||||
true) sleep 0;;
|
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/.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;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
|||||||
@@ -57,7 +57,7 @@ patterns:
|
|||||||
- from: "dots/.local/share/konsole"
|
- from: "dots/.local/share/konsole"
|
||||||
to: "$XDG_DATA_HOME/konsole"
|
to: "$XDG_DATA_HOME/konsole"
|
||||||
mode: "soft"
|
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"
|
- from: "dots/.config/fontconfig"
|
||||||
to: "$XDG_CONFIG_HOME/fontconfig"
|
to: "$XDG_CONFIG_HOME/fontconfig"
|
||||||
mode: "sync"
|
mode: "sync"
|
||||||
|
|||||||
@@ -81,7 +81,7 @@ while true ; do
|
|||||||
## Ones with parameter
|
## Ones with parameter
|
||||||
--fontset)
|
--fontset)
|
||||||
if [[ -d "${REPO_ROOT}/dots-extra/fontsets/$2" ]];
|
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
|
else echo "Wrong argument for $1.";exit 1
|
||||||
fi;;
|
fi;;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user