#!/usr/bin/env bash #github-action genshdoc echo -ne " ------------------------------------------------------------------------- █████╗ ██████╗ ██████╗██╗ ██╗████████╗██╗████████╗██╗ ██╗███████╗ ██╔══██╗██╔══██╗██╔════╝██║ ██║╚══██╔══╝██║╚══██╔══╝██║ ██║██╔════╝ ███████║██████╔╝██║ ███████║ ██║ ██║ ██║ ██║ ██║███████╗ ██╔══██║██╔══██╗██║ ██╔══██║ ██║ ██║ ██║ ██║ ██║╚════██║ ██║ ██║██║ ██║╚██████╗██║ ██║ ██║ ██║ ██║ ╚██████╔╝███████║ ╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚══════╝ ------------------------------------------------------------------------- Automated Arch Linux Installer SCRIPTHOME: ArchTitus ------------------------------------------------------------------------- " source $HOME/ArchTitus/configs/setup.conf cd ~ mkdir "/home/$USERNAME/.cache" #X DELETE: # touch "/home/$USERNAME/.cache/zshhistory" # git clone "https://github.com/ChrisTitusTech/zsh" # git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ~/powerlevel10k # ln -s "~/zsh/.zshrc" ~/.zshrc echo -ne " ------------------------------------------------------------------------- Install Desktop Environment ------------------------------------------------------------------------- " sed -n '/'$INSTALL_TYPE'/q;p' ~/ArchTitus/pkg-files/${DESKTOP_ENV}.txt | while read line do if [[ ${line} == '--END OF MINIMAL INSTALL--' ]] then # If selected installation type is FULL, skip the --END OF THE MINIMAL INSTALLATION-- line continue fi if [[ ! $line = \#* ]] ; then echo "INSTALLING: ${line}" sudo pacman -S --noconfirm --needed ${line} fi done echo -ne " ------------------------------------------------------------------------- Install AUR Software ------------------------------------------------------------------------- " if [[ ! $AUR_HELPER == none ]]; then cd ~ git clone "https://aur.archlinux.org/$AUR_HELPER.git" cd ~/$AUR_HELPER makepkg -si --noconfirm cd ~ rm -rf $AUR_HELPER # sed $INSTALL_TYPE is using install type to check for MINIMAL installation, if it's true, stop # stop the script and move on, not installing any more packages below that line sed -n '/'$INSTALL_TYPE'/q;p' ~/ArchTitus/pkg-files/aur-pkgs.txt | while read line do if [[ ${line} == '--END OF MINIMAL INSTALL--' ]]; then # If selected installation type is FULL, skip the --END OF THE MINIMAL INSTALLATION-- line continue fi if [[ ! $line = \#* ]] ; then echo "INSTALLING: ${line}" $AUR_HELPER -S --noconfirm --needed ${line} fi done fi export PATH=$PATH:~/.local/bin echo -ne " ------------------------------------------------------------------------- Theming DE if user chose FULL installation ------------------------------------------------------------------------- " if [[ $INSTALL_TYPE == "FULL" ]]; then if [[ $DESKTOP_ENV == "kde" ]]; then cp -r ~/ArchTitus/configs/.config/* ~/.config/ pip install konsave konsave -i ~/ArchTitus/configs/kde.knsv sleep 1 konsave -a kde elif [[ $DESKTOP_ENV == "openbox" ]]; then cd ~ git clone https://github.com/stojshic/dotfiles-openbox ./dotfiles-openbox/install-titus.sh elif [[ $DESKTOP_ENV == "gnome" ]] echo "Setting up my gnome things: " bash ~/ArchTitus/scripts/my_gnome_setup.sh fi fi echo -ne " ------------------------------------------------------------------------- SYSTEM READY FOR 3-post-setup.sh ------------------------------------------------------------------------- " exit