diff --git a/scripts/functions.sh b/scripts/functions.sh index 9274a62..6133ee3 100755 --- a/scripts/functions.sh +++ b/scripts/functions.sh @@ -29,7 +29,15 @@ check_klipper_cfg_path(){ change_klipper_cfg_path(){ source_kiauh_ini old_klipper_cfg_loc="$klipper_cfg_loc" + EXAMPLE_FOLDER=$(printf "%s/your_config_folder" "${HOME}") while true; do + top_border + echo -e "| ${red}IMPORTANT:${default} |" + echo -e "| Please enter the new path in the following form: |" + printf "| ${yellow}%-51s${default} |\n" "$EXAMPLE_FOLDER" + blank_line + echo -e "| By default 'klipper_config' is recommended! |" + bottom_border echo echo -e "${cyan}###### Please set the Klipper config directory:${default} " if [ -z "$old_klipper_cfg_loc" ]; then @@ -52,7 +60,6 @@ change_klipper_cfg_path(){ ### write new location to klipper and moonraker service set_klipper_cfg_path - echo; ok_msg "Config directory changed!" break;; N|n|No|no) @@ -126,7 +133,7 @@ set_klipper_cfg_path(){ } source_kiauh_ini(){ - source ${SRCDIR}/kiauh/kiauh.ini + source $INI_FILE } klipper_service(){ diff --git a/scripts/ui/settings_menu.sh b/scripts/ui/settings_menu.sh index 3b07f0f..f2fc941 100755 --- a/scripts/ui/settings_menu.sh +++ b/scripts/ui/settings_menu.sh @@ -5,18 +5,18 @@ settings_ui(){ echo -e "| $(title_msg "~~~~~~~~~~~~ [ KIAUH Settings ] ~~~~~~~~~~~~~") | " hr echo -e "| ${red}Caution:${default} | " - echo -e "| When you rename the config folder, be aware that ALL | " + echo -e "| When you change the config folder, be aware that ALL | " echo -e "| Klipper and Moonraker services will be STOPPED, | " echo -e "| reconfigured and then restarted again. | " blank_line - echo -e "| ${red}DO NOT rename the folder during printing!${default} | " + echo -e "| ${red}DO NOT change the folder during printing!${default} | " hr blank_line - echo -e "| ${yellow}● Current Klipper config folder:${default} | " + echo -e "| ${cyan}● Current Klipper config folder:${default} | " printf "|%-55s|\n" " $klipper_cfg_loc" blank_line hr - echo -e "| 1) Rename config folder | " + echo -e "| 1) Change config folder | " quit_footer }