|
|
|
|
@@ -1,52 +1,50 @@
|
|
|
|
|
#!/bin/bash
|
|
|
|
|
### set important directories
|
|
|
|
|
|
|
|
|
|
#kiauh.sh
|
|
|
|
|
#klipper
|
|
|
|
|
KLIPPER_DIR=${HOME}/klipper
|
|
|
|
|
KLIPPY_ENV=${HOME}/klippy-env
|
|
|
|
|
readonly KLIPPER_DIR=${HOME}/klipper
|
|
|
|
|
readonly KLIPPY_ENV=${HOME}/klippy-env
|
|
|
|
|
#nginx
|
|
|
|
|
NGINX_SA=/etc/nginx/sites-available
|
|
|
|
|
NGINX_SE=/etc/nginx/sites-enabled
|
|
|
|
|
NGINX_CONFD=/etc/nginx/conf.d
|
|
|
|
|
readonly NGINX_SA=/etc/nginx/sites-available
|
|
|
|
|
readonly NGINX_SE=/etc/nginx/sites-enabled
|
|
|
|
|
readonly NGINX_CONFD=/etc/nginx/conf.d
|
|
|
|
|
#moonraker
|
|
|
|
|
MOONRAKER_DIR=${HOME}/moonraker
|
|
|
|
|
MOONRAKER_ENV=${HOME}/moonraker-env
|
|
|
|
|
readonly MOONRAKER_DIR=${HOME}/moonraker
|
|
|
|
|
readonly MOONRAKER_ENV=${HOME}/moonraker-env
|
|
|
|
|
#mainsail
|
|
|
|
|
MAINSAIL_DIR=${HOME}/mainsail
|
|
|
|
|
readonly MAINSAIL_DIR=${HOME}/mainsail
|
|
|
|
|
#fluidd
|
|
|
|
|
FLUIDD_DIR=${HOME}/fluidd
|
|
|
|
|
readonly FLUIDD_DIR=${HOME}/fluidd
|
|
|
|
|
#dwc2
|
|
|
|
|
DWC2FK_DIR=${HOME}/dwc2-for-klipper-socket
|
|
|
|
|
DWC_ENV_DIR=${HOME}/dwc-env
|
|
|
|
|
DWC2_DIR=${HOME}/duetwebcontrol
|
|
|
|
|
readonly DWC2FK_DIR=${HOME}/dwc2-for-klipper-socket
|
|
|
|
|
readonly DWC_ENV_DIR=${HOME}/dwc-env
|
|
|
|
|
readonly DWC2_DIR=${HOME}/duetwebcontrol
|
|
|
|
|
#octoprint
|
|
|
|
|
OCTOPRINT_DIR=${HOME}/OctoPrint
|
|
|
|
|
readonly OCTOPRINT_DIR=${HOME}/OctoPrint
|
|
|
|
|
#KlipperScreen
|
|
|
|
|
KLIPPERSCREEN_DIR=${HOME}/KlipperScreen
|
|
|
|
|
KLIPPERSCREEN_ENV_DIR=${HOME}/.KlipperScreen-env
|
|
|
|
|
readonly KLIPPERSCREEN_DIR=${HOME}/KlipperScreen
|
|
|
|
|
readonly KLIPPERSCREEN_ENV_DIR=${HOME}/.KlipperScreen-env
|
|
|
|
|
#MoonrakerTelegramBot
|
|
|
|
|
MOONRAKER_TELEGRAM_BOT_DIR=${HOME}/moonraker-telegram-bot
|
|
|
|
|
MOONRAKER_TELEGRAM_BOT_ENV_DIR=${HOME}/moonraker-telegram-bot-env
|
|
|
|
|
readonly MOONRAKER_TELEGRAM_BOT_DIR=${HOME}/moonraker-telegram-bot
|
|
|
|
|
readonly MOONRAKER_TELEGRAM_BOT_ENV_DIR=${HOME}/moonraker-telegram-bot-env
|
|
|
|
|
#misc
|
|
|
|
|
INI_FILE=${HOME}/.kiauh.ini
|
|
|
|
|
BACKUP_DIR=${HOME}/kiauh-backups
|
|
|
|
|
readonly INI_FILE=${HOME}/.kiauh.ini
|
|
|
|
|
readonly BACKUP_DIR=${HOME}/kiauh-backups
|
|
|
|
|
readonly SYSTEMDDIR=/etc/systemd/system
|
|
|
|
|
|
|
|
|
|
### set github repos
|
|
|
|
|
KLIPPER_REPO=https://github.com/Klipper3d/klipper.git
|
|
|
|
|
ARKSINE_REPO=https://github.com/Arksine/klipper.git
|
|
|
|
|
DMBUTYUGIN_REPO=https://github.com/dmbutyugin/klipper.git
|
|
|
|
|
DWC2FK_REPO=https://github.com/Stephan3/dwc2-for-klipper-socket.git
|
|
|
|
|
KLIPPERSCREEN_REPO=https://github.com/jordanruthe/KlipperScreen.git
|
|
|
|
|
NLEF_REPO=https://github.com/nlef/moonraker-telegram-bot.git
|
|
|
|
|
readonly KLIPPER_REPO=https://github.com/Klipper3d/klipper.git
|
|
|
|
|
readonly ARKSINE_REPO=https://github.com/Arksine/klipper.git
|
|
|
|
|
readonly DMBUTYUGIN_REPO=https://github.com/dmbutyugin/klipper.git
|
|
|
|
|
readonly DWC2FK_REPO=https://github.com/Stephan3/dwc2-for-klipper-socket.git
|
|
|
|
|
readonly KLIPPERSCREEN_REPO=https://github.com/jordanruthe/KlipperScreen.git
|
|
|
|
|
readonly NLEF_REPO=https://github.com/nlef/moonraker-telegram-bot.git
|
|
|
|
|
#branches
|
|
|
|
|
BRANCH_SCURVE_SMOOTHING=dmbutyugin/scurve-smoothing
|
|
|
|
|
BRANCH_SCURVE_SHAPING=dmbutyugin/scurve-shaping
|
|
|
|
|
readonly BRANCH_SCURVE_SMOOTHING=dmbutyugin/scurve-smoothing
|
|
|
|
|
readonly BRANCH_SCURVE_SHAPING=dmbutyugin/scurve-shaping
|
|
|
|
|
|
|
|
|
|
###Whiptail
|
|
|
|
|
KIAUH_WHIPTAIL_WIDTH=96
|
|
|
|
|
KIAUH_WHIPTAIL_HEIGHT=25
|
|
|
|
|
|
|
|
|
|
#functions.sh
|
|
|
|
|
### base variables
|
|
|
|
|
SYSTEMDDIR="/etc/systemd/system"
|
|
|
|
|
|
|
|
|
|
readonly KIAUH_WHIPTAIL_NORMAL_WIDTH=70
|
|
|
|
|
readonly KIAUH_WHIPTAIL_NORMAL_HEIGHT=24
|
|
|
|
|
readonly KIAUH_WHIPTAIL_SINGLE_LINE_HEIGHT=7
|
|
|
|
|
|