#!/usr/bin/env sh greeter() { cat </etc/pacman.conf <$LOG_DIR/install_yay.log; fi clear greeter printf "\nDo you want to install packages? (Y/n): "; read CHOICE if [ "$CHOICE" = "Y" ]; then echo "Installing packages..." && install_packages &>$LOG_DIR/install_packages.log; fi clear greeter printf "\nDo you want to compile nad install st? (Y/n): "; read CHOICE if [ "$CHOICE" = "Y" ]; then echo "Compiling and nstalling st..." && install_st &>$LOG_DIR/install_st.log; fi clear greeter printf "\nDo you want to copy configs? (Y/n): "; read CHOICE if [ "$CHOICE" = "Y" ]; then printf "Moving configs...\n" copy_configs &>$LOG_DIR/copy_configs.log printf "\n" chsh -s /usr/bin/zsh printf "\nConfiguring udiskie.\n" su root -c "echo 'ENV{ID_FS_USAGE}==\"filesystem|other|crypto\", ENV{UDISKS_FILESYSTEM_SHARED}=\"1\"' > /etc/udev/rules.d/99-udisks2.rules && echo 'D /media 0755 root root 0 -' > /etc/tmpfiles.d/media.conf" printf "\nConfiguring pacman.\n" config_pacman fi clear greeter