Update install.sh
This commit is contained in:
parent
b76b5fef2c
commit
fad26b6ae9
42
install.sh
42
install.sh
@ -1,32 +1,60 @@
|
|||||||
Echo "Welcome to my installer"
|
#!/bin/bash
|
||||||
cd
|
|
||||||
|
echo "Welcome to my installer"
|
||||||
|
cd ~
|
||||||
|
|
||||||
|
# Install recommended packages
|
||||||
read -p "Do you want to install recommended packages as well? (y/n): " choice
|
read -p "Do you want to install recommended packages as well? (y/n): " choice
|
||||||
|
|
||||||
# Check the response
|
|
||||||
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
||||||
sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si
|
sudo pacman -S --needed git base-devel
|
||||||
|
if ! command -v yay &>/dev/null; then
|
||||||
|
git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si
|
||||||
|
else
|
||||||
|
echo "yay is already installed"
|
||||||
|
fi
|
||||||
|
yay -Syu
|
||||||
yay -S git wlogout neovim zip unzip pipewire hyprpicker hypridle hyprlock hyprshot code bpytop nerdfetch yay wl-clipboard wl-copy nerd-fonts starship thunar grim slurp gnome-network-displays discord Firefox spotify ncspot pacman-contrib swaync pywal waybar swww blueman bluez networkmanager gvfs libnotify pavucontrolfdf pipewire-pulse nwg-look wofi s-tui pywalfox auto-cpufreq powertop qogir-icon-theme fd
|
yay -S git wlogout neovim zip unzip pipewire hyprpicker hypridle hyprlock hyprshot code bpytop nerdfetch yay wl-clipboard wl-copy nerd-fonts starship thunar grim slurp gnome-network-displays discord Firefox spotify ncspot pacman-contrib swaync pywal waybar swww blueman bluez networkmanager gvfs libnotify pavucontrolfdf pipewire-pulse nwg-look wofi s-tui pywalfox auto-cpufreq powertop qogir-icon-theme fd
|
||||||
else
|
else
|
||||||
sudo pacman -S --needed git base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si
|
sudo pacman -S --needed git base-devel
|
||||||
|
if ! command -v yay &>/dev/null; then
|
||||||
|
git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si
|
||||||
|
else
|
||||||
|
echo "yay is already installed"
|
||||||
|
fi
|
||||||
|
yay -Syu
|
||||||
yay -S git wlogout neovim pipewire hyprpicker hypridle hyprlock hyprshot nerdfetch wl-clipboard wl-copy nerd-fonts starship thunar firefox pacman-contrib swaync pywal waybar swww blueman bluez networkmanager gvfs libnotify pavucontrolfdf pipewire-pulse nwg-look wofi pywalfox qogir-icon-theme fd
|
yay -S git wlogout neovim pipewire hyprpicker hypridle hyprlock hyprshot nerdfetch wl-clipboard wl-copy nerd-fonts starship thunar firefox pacman-contrib swaync pywal waybar swww blueman bluez networkmanager gvfs libnotify pavucontrolfdf pipewire-pulse nwg-look wofi pywalfox qogir-icon-theme fd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Create wallpapers directory
|
||||||
read -p "Do you want to make a new folder 'wallpapers' in your home directory? This may erase your current 'wallpapers' if you have one (y/n): " choice
|
read -p "Do you want to make a new folder 'wallpapers' in your home directory? This may erase your current 'wallpapers' if you have one (y/n): " choice
|
||||||
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
||||||
|
if [ -d ~/wallpapers ]; then
|
||||||
|
echo "Existing 'wallpapers' directory found, it will be replaced."
|
||||||
|
fi
|
||||||
sudo cp -f -r ~/Dotfiles/wallpapers ~/
|
sudo cp -f -r ~/Dotfiles/wallpapers ~/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
wal -i ~/Dotfiles/wallpapers/walls/Aloe.jpg
|
# Set wallpaper
|
||||||
|
if command -v wal &>/dev/null; then
|
||||||
|
wal -i ~/Dotfiles/wallpapers/walls/Aloe.jpg
|
||||||
|
else
|
||||||
|
echo "wal not found, skipping wallpaper setup."
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Backup .config folder
|
||||||
read -p "Do you want to make a backup of your current .config folder? (y/n): " choice
|
read -p "Do you want to make a backup of your current .config folder? (y/n): " choice
|
||||||
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
||||||
sudo cp -r ~/.config ~/.config-bak
|
sudo cp -r ~/.config ~/.config-bak
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Replace .config files
|
||||||
sudo cp -r -f ~/Dotfiles/.config/* ~/.config/
|
sudo cp -r -f ~/Dotfiles/.config/* ~/.config/
|
||||||
|
|
||||||
read -p "Do you want to replace you .bashrc file? (y/n): " choice
|
# Replace .bashrc
|
||||||
|
read -p "Do you want to replace your .bashrc file? (y/n): " choice
|
||||||
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
if [[ "$choice" == "y" || "$choice" == "Y" ]]; then
|
||||||
sudo cp -r -f ~/Dotfiles/.bashrc ~/
|
sudo cp -r -f ~/Dotfiles/.bashrc ~/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
echo "Done"
|
echo "Done"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user