mirror of
https://github.com/dw-0/kiauh.git
synced 2025-12-13 10:34:28 +05:00
initial commit of a bigger kiauh rework to make multi instance installations possible
This commit is contained in:
@@ -26,13 +26,13 @@ install_menu(){
|
||||
1)
|
||||
clear
|
||||
print_header
|
||||
install_klipper
|
||||
klipper_setup_dialog
|
||||
print_msg && clear_msg
|
||||
install_ui;;
|
||||
2)
|
||||
clear
|
||||
print_header
|
||||
install_moonraker
|
||||
moonraker_setup_dialog
|
||||
print_msg && clear_msg
|
||||
install_ui;;
|
||||
3)
|
||||
|
||||
@@ -7,10 +7,10 @@ main_ui(){
|
||||
echo -e "| 1) [Install] | |"
|
||||
echo -e "| 2) [Update] | Moonraker: $MOONRAKER_STATUS|"
|
||||
echo -e "| 3) [Remove] | |"
|
||||
echo -e "| | DWC2: $DWC2_STATUS|"
|
||||
echo -e "| 4) [Advanced] | Fluidd: $FLUIDD_STATUS|"
|
||||
echo -e "| 5) [Backup] | Mainsail: $MAINSAIL_STATUS|"
|
||||
echo -e "| | Octoprint: $OCTOPRINT_STATUS|"
|
||||
echo -e "| 4) [Advanced] | DWC2: $DWC2_STATUS|"
|
||||
echo -e "| 5) [Backup] | Fluidd: $FLUIDD_STATUS|"
|
||||
echo -e "| | Mainsail: $MAINSAIL_STATUS|"
|
||||
echo -e "| 6) [Settings] | Octoprint: $OCTOPRINT_STATUS|"
|
||||
echo -e "| | |"
|
||||
echo -e "| ${cyan}$KIAUH_VER${default}| KlipperScreen: $KLIPPERSCREEN_STATUS|"
|
||||
quit_footer
|
||||
@@ -75,6 +75,10 @@ main_menu(){
|
||||
clear
|
||||
backup_menu
|
||||
break;;
|
||||
6)
|
||||
clear
|
||||
settings_menu
|
||||
break;;
|
||||
Q|q)
|
||||
echo -e "${green}###### Happy printing! ######${default}"; echo
|
||||
exit -1;;
|
||||
|
||||
47
scripts/ui/settings_menu.sh
Executable file
47
scripts/ui/settings_menu.sh
Executable file
@@ -0,0 +1,47 @@
|
||||
settings_ui(){
|
||||
source_kiauh_ini
|
||||
[ -z $klipper_cfg_loc ] && klipper_cfg_loc="----------"
|
||||
top_border
|
||||
echo -e "| $(title_msg "~~~~~~~~~~~~ [ KIAUH Settings ] ~~~~~~~~~~~~~") | "
|
||||
hr
|
||||
echo -e "| ${red}Caution:${default} | "
|
||||
echo -e "| Changing the path below will COPY the config files | "
|
||||
echo -e "| to the new location. During that process ALL Klipper | "
|
||||
echo -e "| and Moonraker services get stopped and reconfigured. | "
|
||||
blank_line
|
||||
echo -e "| ${red}DO NOT change the folder location during printing!${default} | "
|
||||
hr
|
||||
blank_line
|
||||
echo -e "| ${yellow}● Current Klipper configuration folder:${default} | "
|
||||
printf "|%-55s|\n" " $klipper_cfg_loc"
|
||||
blank_line
|
||||
hr
|
||||
echo -e "| 1) Change configuration folder | "
|
||||
quit_footer
|
||||
}
|
||||
|
||||
settings_menu(){
|
||||
print_header
|
||||
print_msg && clear_msg
|
||||
settings_ui
|
||||
while true; do
|
||||
read -p "${cyan}Perform action:${default} " action; echo
|
||||
case "$action" in
|
||||
1)
|
||||
clear
|
||||
print_header
|
||||
change_klipper_cfg_path
|
||||
print_msg && clear_msg
|
||||
settings_ui;;
|
||||
Q|q)
|
||||
clear; main_menu; break;;
|
||||
*)
|
||||
clear
|
||||
print_header
|
||||
print_unkown_cmd
|
||||
print_msg && clear_msg
|
||||
settings_ui;;
|
||||
esac
|
||||
done
|
||||
settings_ui
|
||||
}
|
||||
Reference in New Issue
Block a user