Skip to content

Commit

Permalink
patch for new HyDE:
Browse files Browse the repository at this point in the history
  • Loading branch information
kRHYME7 committed Nov 22, 2024
1 parent eabb86a commit ed044ed
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Scripts/Patch-Theme
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,10 @@ if [[ -z $1 || -z $2 ]]; then
exit 1
fi

dcolDir="${confDir}/hyde/wallbash/Wall-Dcol"
[ ! -d "${dcolDir}" ] && print_prompt "[ERROR]" "${dcolDir} do not exist!" && exit 1
dcolTheme="Wall-Dcol"
[[ -f "${confDir}/hyde/wallbash/theme" ]] && dcolTheme="theme"
dcolDir="${confDir}/hyde/wallbash/${dcolDest}"
[ ! -d "${dcolDir}" ] && print_prompt "[ERROR]" "${dcolTheme} do not exist!" && exit 1

# set parameters
Fav_Theme="$1"
Expand Down Expand Up @@ -148,7 +150,7 @@ print_prompt "Patching" -g " --// ${Fav_Theme} //-- " "from " -b "${Theme_Dir}\n
Fav_Theme_Dir="${Theme_Dir}/Configs/.config/hyde/themes/${Fav_Theme}"
[ ! -d "${Fav_Theme_Dir}" ] && print_prompt -r "[ERROR] " "'${Fav_Theme_Dir}'" -y " Do not Exist" && exit 1

config=$(find "${dcolDir}" -type f -name "*.dcol" | awk -v favTheme="${Fav_Theme}" -F 'Wall-Dcol/' '{gsub(/\.dcol$/, ".theme"); print ".config/hyde/themes/" favTheme "/" $2}')
config=$(find "${dcolDir}" -type f -name "*.dcol" | awk -v favTheme="${Fav_Theme}" -F '$dcolTheme/' '{gsub(/\.dcol$/, ".theme"); print ".config/hyde/themes/" favTheme "/" $2}')
restore_list=""

while IFS= read -r fchk; do
Expand Down

0 comments on commit ed044ed

Please sign in to comment.