2023-11-10 21:12:15 +00:00
|
|
|
#!/bin/bash
|
2024-01-05 08:34:18 +00:00
|
|
|
version=$(cat .version/name)
|
2023-11-17 12:48:02 +00:00
|
|
|
source .install/colors.sh
|
2023-12-21 20:57:44 +00:00
|
|
|
source .install/library.sh
|
2023-11-10 21:12:15 +00:00
|
|
|
clear
|
|
|
|
|
|
|
|
# Set installation mode
|
|
|
|
mode="live"
|
|
|
|
if [ ! -z $1 ]; then
|
|
|
|
mode="dev"
|
|
|
|
echo "IMPORTANT: DEV MODE ACTIVATED. "
|
|
|
|
echo "Existing dotfiles folder will not be modified."
|
|
|
|
echo "Symbolic links will not be created."
|
|
|
|
fi
|
2023-11-17 12:48:02 +00:00
|
|
|
echo -e "${GREEN}"
|
2023-11-10 21:12:15 +00:00
|
|
|
cat <<"EOF"
|
2023-12-21 20:57:44 +00:00
|
|
|
__ __ _ _ ___ __ _ _ __ _ _
|
|
|
|
| \/ | | | || \ \ / / __| | ___ | |_ / _(_) | ___ ___
|
|
|
|
| |\/| | | | || |\ \ /\ / / / _` |/ _ \| __| |_| | |/ _ \/ __|
|
|
|
|
| | | | |__|__ _\ V V / | (_| | (_) | |_| _| | | __/\__ \
|
|
|
|
|_| |_|_____| |_| \_/\_/ \__,_|\___/ \__|_| |_|_|\___||___/
|
|
|
|
|
2023-11-10 21:12:15 +00:00
|
|
|
EOF
|
2023-11-17 12:48:02 +00:00
|
|
|
echo -e "${NONE}"
|
|
|
|
|
2023-11-10 21:12:15 +00:00
|
|
|
echo "Version: $version"
|
2024-01-07 15:14:26 +00:00
|
|
|
echo "by Stephan Raabe 2024"
|
2023-11-10 21:12:15 +00:00
|
|
|
echo ""
|
2023-12-25 13:45:11 +00:00
|
|
|
if [ -d ~/dotfiles ] ;then
|
|
|
|
echo "A ML4W dotfiles installation has been detected."
|
|
|
|
echo "This script will guide you through the update process of the ML4W dotfiles."
|
|
|
|
else
|
|
|
|
echo "This script will guide you through the installation process of the ML4W dotfiles."
|
|
|
|
fi
|
2023-11-10 21:12:15 +00:00
|
|
|
echo ""
|
2023-11-21 06:04:26 +00:00
|
|
|
source .install/required.sh
|
2023-11-10 21:12:15 +00:00
|
|
|
source .install/confirm-start.sh
|
2023-12-29 11:11:44 +00:00
|
|
|
source .install/yay.sh
|
2023-11-10 21:12:15 +00:00
|
|
|
source .install/backup.sh
|
|
|
|
source .install/preparation.sh
|
|
|
|
source .install/profile.sh
|
2023-12-29 11:11:44 +00:00
|
|
|
if [[ $profile == *"Hyprland"* ]]; then
|
|
|
|
source .install/hyprland-version.sh
|
|
|
|
fi
|
2023-12-29 11:37:39 +00:00
|
|
|
|
2023-12-25 13:45:11 +00:00
|
|
|
source .install/installer.sh
|
2023-12-29 11:37:39 +00:00
|
|
|
|
2023-12-27 22:19:24 +00:00
|
|
|
source .install/general.sh
|
|
|
|
source .install/general-packages.sh
|
|
|
|
source .install/install-packages.sh
|
2023-12-29 11:37:39 +00:00
|
|
|
|
2023-11-21 20:19:51 +00:00
|
|
|
if [[ $profile == *"Hyprland"* ]]; then
|
|
|
|
source .install/hyprland.sh
|
2023-11-10 21:12:15 +00:00
|
|
|
source .install/hyprland-packages.sh
|
|
|
|
source .install/install-packages.sh
|
|
|
|
fi
|
2023-11-21 20:19:51 +00:00
|
|
|
if [[ $profile == *"Qtile"* ]]; then
|
|
|
|
source .install/qtile.sh
|
2023-11-10 21:12:15 +00:00
|
|
|
source .install/qtile-packages.sh
|
|
|
|
source .install/install-packages.sh
|
|
|
|
fi
|
|
|
|
source .install/pywal.sh
|
|
|
|
source .install/wallpaper.sh
|
2023-12-20 08:27:11 +00:00
|
|
|
source .install/displaymanager.sh
|
2023-11-10 21:12:15 +00:00
|
|
|
source .install/issue.sh
|
|
|
|
source .install/restore.sh
|
2023-12-07 09:02:48 +00:00
|
|
|
source .install/vm.sh
|
2023-11-20 16:47:51 +00:00
|
|
|
source .install/keyboard.sh
|
2023-12-07 20:32:32 +00:00
|
|
|
source .install/hook.sh
|
2023-11-10 21:12:15 +00:00
|
|
|
source .install/copy.sh
|
|
|
|
source .install/config-folder.sh
|
|
|
|
source .install/init-pywal.sh
|
2023-11-21 20:19:51 +00:00
|
|
|
if [[ $profile == *"Hyprland"* ]]; then
|
2023-11-10 21:12:15 +00:00
|
|
|
source .install/hyprland-dotfiles.sh
|
|
|
|
fi
|
2023-11-21 20:19:51 +00:00
|
|
|
if [[ $profile == *"Qtile"* ]]; then
|
2023-11-10 21:12:15 +00:00
|
|
|
source .install/qtile-dotfiles.sh
|
|
|
|
fi
|
2024-01-22 12:51:18 +00:00
|
|
|
source .install/gtk.sh
|
2023-11-12 13:16:53 +00:00
|
|
|
source .install/bashrc.sh
|
2023-11-24 12:58:59 +00:00
|
|
|
source .install/monitor.sh
|
2023-12-25 14:02:36 +00:00
|
|
|
source .install/cleanup.sh
|
2023-11-10 21:12:15 +00:00
|
|
|
source .install/done.sh
|