Updates
This commit is contained in:
parent
565d99a103
commit
99e132b989
@ -80,7 +80,7 @@ if [ -d ~/dotfiles ] || ! test -L ~/.bashrc || [ -d ~/.config/hypr ] || [ -d ~/.
|
|||||||
if ! test -L ~/.config/swappy && [ -d ~/.config/swappy ] ;then
|
if ! test -L ~/.config/swappy && [ -d ~/.config/swappy ] ;then
|
||||||
echo " - $HOME/.config/swappy/"
|
echo " - $HOME/.config/swappy/"
|
||||||
fi
|
fi
|
||||||
|
echo
|
||||||
# Start Backup
|
# Start Backup
|
||||||
|
|
||||||
if gum confirm "Do you want to create a backup?" ;then
|
if gum confirm "Do you want to create a backup?" ;then
|
||||||
|
@ -17,6 +17,7 @@ if [ ! -d ~/dotfiles ];then
|
|||||||
if gum confirm "DO YOU WANT TO START THE INSTALLATION OF THE ML4W DOTFILES NOW?" ;then
|
if gum confirm "DO YOU WANT TO START THE INSTALLATION OF THE ML4W DOTFILES NOW?" ;then
|
||||||
echo "Installation started."
|
echo "Installation started."
|
||||||
elif [ $? -eq 130 ]; then
|
elif [ $? -eq 130 ]; then
|
||||||
|
echo ":: Installation canceled."
|
||||||
exit 130
|
exit 130
|
||||||
else
|
else
|
||||||
echo ":: Installation canceled."
|
echo ":: Installation canceled."
|
||||||
@ -26,6 +27,7 @@ else
|
|||||||
if gum confirm "DO YOU WANT TO START THE UPDATE OF YOUR ML4W DOTFILES NOW?" ;then
|
if gum confirm "DO YOU WANT TO START THE UPDATE OF YOUR ML4W DOTFILES NOW?" ;then
|
||||||
echo ":: Update started."
|
echo ":: Update started."
|
||||||
elif [ $? -eq 130 ]; then
|
elif [ $? -eq 130 ]; then
|
||||||
|
echo ":: Update canceled."
|
||||||
exit 130
|
exit 130
|
||||||
else
|
else
|
||||||
echo ":: Update canceled."
|
echo ":: Update canceled."
|
||||||
|
@ -13,22 +13,23 @@ fi
|
|||||||
if [ ! -d ~/dotfiles ]; then
|
if [ ! -d ~/dotfiles ]; then
|
||||||
echo "The script will now remove existing directories and files from ~/.config/"
|
echo "The script will now remove existing directories and files from ~/.config/"
|
||||||
echo "and copy your prepared configuration from ~/dotfiles-versions/$version to ~/dotfiles"
|
echo "and copy your prepared configuration from ~/dotfiles-versions/$version to ~/dotfiles"
|
||||||
echo ""
|
echo
|
||||||
echo "Symbolic links will then be created from ~/dotfiles into your ~/.config/ directory."
|
echo "Symbolic links will then be created from ~/dotfiles into your ~/.config/ directory."
|
||||||
echo ""
|
echo
|
||||||
fi
|
fi
|
||||||
if [[ ! $(tty) == *"pts"* ]] && [ -d ~/dotfiles ]; then
|
if [[ ! $(tty) == *"pts"* ]] && [ -d ~/dotfiles ]; then
|
||||||
echo "You're running the script in tty. You can delete the existing ~/dotfiles folder now for a clean installation."
|
echo "You're running the script in tty. You can delete the existing ~/dotfiles folder now for a clean installation."
|
||||||
echo "If not, the script will overwrite existing files but will not remove additional files or folders of your custom configuration."
|
echo "If not, the script will overwrite existing files but will not remove additional files or folders of your custom configuration."
|
||||||
echo ""
|
echo
|
||||||
else
|
else
|
||||||
if [ -d ~/dotfiles ]; then
|
if [ -d ~/dotfiles ]; then
|
||||||
echo "The script will overwrite existing files but will not remove additional files or folders from your custom configuration."
|
echo "The script will overwrite existing files but will not remove additional files or folders from your custom configuration."
|
||||||
|
echo
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
if [ ! -d ~/dotfiles ]; then
|
if [ ! -d ~/dotfiles ]; then
|
||||||
echo "PLEASE BACKUP YOUR EXISTING CONFIGURATIONS in .config IF NEEDED!"
|
echo "PLEASE BACKUP YOUR EXISTING CONFIGURATIONS in .config IF NEEDED!"
|
||||||
echo ""
|
echo
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if gum confirm "Do you want to install the prepared dotfiles now?" ;then
|
if gum confirm "Do you want to install the prepared dotfiles now?" ;then
|
||||||
@ -50,8 +51,10 @@ if gum confirm "Do you want to install the prepared dotfiles now?" ;then
|
|||||||
echo "Skipped: DEV MODE!"
|
echo "Skipped: DEV MODE!"
|
||||||
fi
|
fi
|
||||||
elif [ $? -eq 130 ]; then
|
elif [ $? -eq 130 ]; then
|
||||||
|
echo ":: Installation cancelled"
|
||||||
exit 130
|
exit 130
|
||||||
else
|
else
|
||||||
|
echo ":: Installation cancelled"
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo
|
||||||
|
@ -30,12 +30,14 @@ if [ ! -d ~/dotfiles ];then
|
|||||||
disman=0
|
disman=0
|
||||||
echo "You have already installed a display manager on your system."
|
echo "You have already installed a display manager on your system."
|
||||||
echo "How do you want to proceed?"
|
echo "How do you want to proceed?"
|
||||||
|
echo
|
||||||
dmsel=$(gum choose "Keep current setup" "Deactivate current display manager" "Install sddm and theme")
|
dmsel=$(gum choose "Keep current setup" "Deactivate current display manager" "Install sddm and theme")
|
||||||
else
|
else
|
||||||
disman=1
|
disman=1
|
||||||
echo "There is no display manager installed on your system."
|
echo "There is no display manager installed on your system."
|
||||||
echo "After the installation/update of the dotfiles, you can start Hyprland with command Hyprland and Qtile with commmand Qtile (or startx)."
|
echo "After the installation/update of the dotfiles, you can start Hyprland with command Hyprland and Qtile with commmand Qtile (or startx)."
|
||||||
echo "How do you want to proceed?"
|
echo "How do you want to proceed?"
|
||||||
|
echo
|
||||||
dmsel=$(gum choose "Keep current setup" "Install sddm and theme")
|
dmsel=$(gum choose "Keep current setup" "Install sddm and theme")
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
@ -43,17 +45,19 @@ else
|
|||||||
disman=0
|
disman=0
|
||||||
echo "You have already installed a display manager. If your display manager is working fine, you can keep the current setup."
|
echo "You have already installed a display manager. If your display manager is working fine, you can keep the current setup."
|
||||||
echo "How do you want to proceed?"
|
echo "How do you want to proceed?"
|
||||||
|
echo
|
||||||
dmsel=$(gum choose "Keep current setup" "Deactivate current display manager" "Install sddm and theme")
|
dmsel=$(gum choose "Keep current setup" "Deactivate current display manager" "Install sddm and theme")
|
||||||
else
|
else
|
||||||
disman=1
|
disman=1
|
||||||
echo "There is no display manager installed on your system. You're starting Hyprland/Qtile with commands on tty."
|
echo "There is no display manager installed on your system. You're starting Hyprland/Qtile with commands on tty."
|
||||||
echo "How do you want to proceed?"
|
echo "How do you want to proceed?"
|
||||||
|
echo
|
||||||
dmsel=$(gum choose "Keep current setup" "Install sddm and theme")
|
dmsel=$(gum choose "Keep current setup" "Install sddm and theme")
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ -z "${dmsel}" ] ;then
|
if [ -z "${dmsel}" ] ;then
|
||||||
echo "Installation canceled."
|
echo ":: Installation canceled."
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
if [ "$dmsel" == "Install sddm and theme" ] ;then
|
if [ "$dmsel" == "Install sddm and theme" ] ;then
|
||||||
|
@ -6,9 +6,13 @@ echo -e "${GREEN}"
|
|||||||
figlet "Hook"
|
figlet "Hook"
|
||||||
echo -e "${NONE}"
|
echo -e "${NONE}"
|
||||||
echo ":: The script has detected a hook.sh script."
|
echo ":: The script has detected a hook.sh script."
|
||||||
|
echo
|
||||||
if gum confirm "Do you want to run the script now?"; then
|
if gum confirm "Do you want to run the script now?"; then
|
||||||
source ~/dotfiles-versions/hook.sh
|
source ~/dotfiles-versions/hook.sh
|
||||||
echo ":: hook.sh executed!"
|
echo ":: hook.sh executed!"
|
||||||
|
elif [ $? -eq 130 ]; then
|
||||||
|
echo ":: Installation canceled."
|
||||||
|
exit 130
|
||||||
else
|
else
|
||||||
echo ":: Execution of hook.sh skipped."
|
echo ":: Execution of hook.sh skipped."
|
||||||
fi
|
fi
|
||||||
|
@ -7,10 +7,11 @@ echo -e "${NONE}"
|
|||||||
if [ -d ~/dotfiles ] ;then
|
if [ -d ~/dotfiles ] ;then
|
||||||
echo "Do you want to check for new packages only (faster installation)"
|
echo "Do you want to check for new packages only (faster installation)"
|
||||||
echo "or do you want to reinstall all packages again? (more robust and can help to fix issues)"
|
echo "or do you want to reinstall all packages again? (more robust and can help to fix issues)"
|
||||||
|
echo
|
||||||
if gum confirm "How do you want to proceed?" --affirmative "New packages only" --negative "Force reinstallation" ;then
|
if gum confirm "How do you want to proceed?" --affirmative "New packages only" --negative "Force reinstallation" ;then
|
||||||
force_install=0
|
force_install=0
|
||||||
elif [ $? -eq 130 ]; then
|
elif [ $? -eq 130 ]; then
|
||||||
echo "Installation canceled."
|
echo ":: Installation canceled."
|
||||||
exit 130
|
exit 130
|
||||||
else
|
else
|
||||||
force_install=1
|
force_install=1
|
||||||
@ -18,10 +19,11 @@ if [ -d ~/dotfiles ] ;then
|
|||||||
else
|
else
|
||||||
echo "Do you want to reinstall all already installed packages and install the required new packages? (recommended and more robust)"
|
echo "Do you want to reinstall all already installed packages and install the required new packages? (recommended and more robust)"
|
||||||
echo "or do you want to install the new required packages only? (could be faster installation)"
|
echo "or do you want to install the new required packages only? (could be faster installation)"
|
||||||
|
echo
|
||||||
if gum confirm "How do you want to proceed?" --affirmative "Reinstall all packages" --negative "Install new packages only" ;then
|
if gum confirm "How do you want to proceed?" --affirmative "Reinstall all packages" --negative "Install new packages only" ;then
|
||||||
force_install=1
|
force_install=1
|
||||||
elif [ $? -eq 130 ]; then
|
elif [ $? -eq 130 ]; then
|
||||||
echo "Installation canceled."
|
echo ":: Installation canceled."
|
||||||
exit 130
|
exit 130
|
||||||
else
|
else
|
||||||
force_install=0
|
force_install=0
|
||||||
|
@ -7,9 +7,13 @@ echo -e "${GREEN}"
|
|||||||
figlet "Neovim"
|
figlet "Neovim"
|
||||||
echo -e "${NONE}"
|
echo -e "${NONE}"
|
||||||
echo ":: The script has detected a nvim folder."
|
echo ":: The script has detected a nvim folder."
|
||||||
|
echo
|
||||||
if gum confirm "Do you want to install the ML4W Neovim configuration?"; then
|
if gum confirm "Do you want to install the ML4W Neovim configuration?"; then
|
||||||
echo ":: ML4W Neovim configuration will be installed"
|
echo ":: ML4W Neovim configuration will be installed"
|
||||||
neovim=1
|
neovim=1
|
||||||
|
elif [ $? -eq 130 ]; then
|
||||||
|
echo ":: Installation canceled."
|
||||||
|
exit 130
|
||||||
else
|
else
|
||||||
rm -rf ~/dotfiles-versions/$version/nvim/
|
rm -rf ~/dotfiles-versions/$version/nvim/
|
||||||
echo ":: Installation of ML4W Neovim configuration skipped."
|
echo ":: Installation of ML4W Neovim configuration skipped."
|
||||||
|
@ -4,13 +4,13 @@
|
|||||||
echo -e "${GREEN}"
|
echo -e "${GREEN}"
|
||||||
figlet "Profile"
|
figlet "Profile"
|
||||||
echo -e "${NONE}"
|
echo -e "${NONE}"
|
||||||
|
echo "Please select your installation profile."
|
||||||
echo "SPACE = select/unselect a profile. RETURN = confirm. No selection = CANCEL"
|
echo
|
||||||
profile=$(gum choose --no-limit --cursor-prefix "( ) " --selected-prefix "(x) " --unselected-prefix "( ) " "Hyprland" "Qtile")
|
profile=$(gum choose --no-limit --cursor-prefix "( ) " --selected-prefix "(x) " --unselected-prefix "( ) " "Hyprland" "Qtile")
|
||||||
|
|
||||||
if [ -z "${profile}" ] ;then
|
if [ -z "${profile}" ] ;then
|
||||||
echo "No profile selected. Installation canceled."
|
echo ":: No profile selected. Installation canceled."
|
||||||
exit
|
exit
|
||||||
else
|
else
|
||||||
echo "Profile/s selected:" $profile
|
echo ":: Profile/s selected:" $profile
|
||||||
fi
|
fi
|
||||||
|
@ -8,8 +8,7 @@ monitorrestored=0
|
|||||||
|
|
||||||
_showRestoreOptions() {
|
_showRestoreOptions() {
|
||||||
echo "The following configurations can be transferred into the new installation."
|
echo "The following configurations can be transferred into the new installation."
|
||||||
echo "(SPACE = select/unselect a profile. RETURN = confirm. CTRL-C/No selection = Skip Restore)"
|
echo
|
||||||
echo ""
|
|
||||||
restorelist=""
|
restorelist=""
|
||||||
if [ -f ~/dotfiles/.bashrc ]; then
|
if [ -f ~/dotfiles/.bashrc ]; then
|
||||||
restorelist+="~/dotfiles/.bashrc "
|
restorelist+="~/dotfiles/.bashrc "
|
||||||
@ -88,7 +87,7 @@ _showRestoreOptions() {
|
|||||||
echo "No files selected to restore."
|
echo "No files selected to restore."
|
||||||
confirmrestore=$(gum choose "Change restore" "Skip restore")
|
confirmrestore=$(gum choose "Change restore" "Skip restore")
|
||||||
if [ -z "${confirmrestore}" ] ;then
|
if [ -z "${confirmrestore}" ] ;then
|
||||||
echo "Installation canceled."
|
echo ":: Installation canceled."
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
if [ "$confirmrestore" == "Change restore" ]; then
|
if [ "$confirmrestore" == "Change restore" ]; then
|
||||||
|
@ -6,10 +6,12 @@ echo -e "${GREEN}"
|
|||||||
figlet "System Update"
|
figlet "System Update"
|
||||||
echo -e "${NONE}"
|
echo -e "${NONE}"
|
||||||
echo "It's important that your system is up-to-date before you proceed."
|
echo "It's important that your system is up-to-date before you proceed."
|
||||||
|
echo
|
||||||
if gum confirm "Do you want to update your system with yay now?" ;then
|
if gum confirm "Do you want to update your system with yay now?" ;then
|
||||||
echo ":: Update started"
|
echo ":: Update started"
|
||||||
yay
|
yay
|
||||||
elif [ $? -eq 130 ]; then
|
elif [ $? -eq 130 ]; then
|
||||||
|
echo ":: Installation canceled."
|
||||||
exit 130
|
exit 130
|
||||||
else
|
else
|
||||||
echo ":: System update skipped"
|
echo ":: System update skipped"
|
||||||
|
@ -1,12 +1,12 @@
|
|||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
# Check if yay is installed
|
# Check if yay is installed
|
||||||
# ------------------------------------------------------
|
# ------------------------------------------------------
|
||||||
echo -e "${GREEN}"
|
|
||||||
figlet "yay"
|
|
||||||
echo -e "${NONE}"
|
|
||||||
if sudo pacman -Qs yay > /dev/null ; then
|
if sudo pacman -Qs yay > /dev/null ; then
|
||||||
echo ":: yay is already installed!"
|
echo ":: yay is already installed!"
|
||||||
else
|
else
|
||||||
|
echo -e "${GREEN}"
|
||||||
|
figlet "yay"
|
||||||
|
echo -e "${NONE}"
|
||||||
echo ":: yay is not installed. Starting the installation!"
|
echo ":: yay is not installed. Starting the installation!"
|
||||||
_installPackagesPacman "base-devel"
|
_installPackagesPacman "base-devel"
|
||||||
SCRIPT=$(realpath "$0")
|
SCRIPT=$(realpath "$0")
|
||||||
@ -18,4 +18,4 @@ else
|
|||||||
cd $temp_path
|
cd $temp_path
|
||||||
echo ":: yay has been installed successfully."
|
echo ":: yay has been installed successfully."
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo
|
@ -1 +1 @@
|
|||||||
2.9.1BETA3
|
2.9.1RC1
|
@ -1,4 +1,4 @@
|
|||||||
# ML4W Dotfiles 2.9.1 BETA3
|
# ML4W Dotfiles 2.9.1 RC1
|
||||||
|
|
||||||
An advanced configuration of Hyprland and Qtile for Arch Linux based distributions. This package includes an installation script to install and setup the required components.
|
An advanced configuration of Hyprland and Qtile for Arch Linux based distributions. This package includes an installation script to install and setup the required components.
|
||||||
|
|
||||||
@ -50,7 +50,7 @@ The easiest way is to use the setup.sh script. The script will download all file
|
|||||||
Just copy/enter the following command into your terminal.
|
Just copy/enter the following command into your terminal.
|
||||||
|
|
||||||
```
|
```
|
||||||
bash <(curl -s "https://gitlab.com/stephan-raabe/dotfiles/-/raw/dev/setup.sh")
|
bash <(curl -s https://gitlab.com/stephan-raabe/dotfiles/-/raw/dev/setup.sh)
|
||||||
```
|
```
|
||||||
|
|
||||||
Alternatively you can install with GIT (see below).
|
Alternatively you can install with GIT (see below).
|
||||||
|
@ -11,3 +11,4 @@ env = QT_AUTO_SCREEN_SCALE_FACTOR,1
|
|||||||
env = MOZ_ENABLE_WAYLAND,1
|
env = MOZ_ENABLE_WAYLAND,1
|
||||||
env = GDK_SCALE,1
|
env = GDK_SCALE,1
|
||||||
env = WLR_RENDERER_ALLOW_SOFTWARE, 1
|
env = WLR_RENDERER_ALLOW_SOFTWARE, 1
|
||||||
|
env = WLR_NO_HARDWARE_CURSORS, 1
|
@ -27,10 +27,10 @@ echo "Version: $version"
|
|||||||
echo "by Stephan Raabe 2024"
|
echo "by Stephan Raabe 2024"
|
||||||
echo ""
|
echo ""
|
||||||
if [ -d ~/dotfiles ] ;then
|
if [ -d ~/dotfiles ] ;then
|
||||||
echo "A ML4W Dotfiles installation has been detected."
|
echo ":: An existing ML4W Dotfiles installation has been detected."
|
||||||
echo "This script will guide you through the update process of the ML4W Dotfiles."
|
echo ":: This script will guide you through the update process of the ML4W Dotfiles."
|
||||||
else
|
else
|
||||||
echo "This script will guide you through the installation process of the ML4W dotfiles."
|
echo ":: This script will guide you through the installation process of the ML4W dotfiles."
|
||||||
fi
|
fi
|
||||||
echo ""
|
echo ""
|
||||||
source .install/required.sh
|
source .install/required.sh
|
||||||
|
Loading…
Reference in New Issue
Block a user