1
0

Create install.sh

Mixed all of them to make mine own, just one file needed, I know what I
want. Other were options to install only this and this
This commit is contained in:
Adrien Bouvais 2025-05-02 11:43:19 +02:00
parent 364aced182
commit 7c5ef5ccf5
13 changed files with 59 additions and 196 deletions

View File

@ -1,25 +0,0 @@
#!/bin/bash
sudo chmod -R 777 $HOME
yay -S reflector rsync
sudo reflector --country 'US' --latest 10 --sort rate --save /etc/pacman.d/mirrorlist
yay -S pywal swww
wal -i ~/Dotfiles/wallpapers/walls/r82.jpg -n
yay -S waybar swaync starship myfetch neovim python-pywalfox hypridle hyprpicker hyprshot hyprlock pyprland wlogout fd cava brightnessctl clock-rs-git
yay -S nerd-fonts
yay -S nwg-look qogir-icon-theme materia-gtk-theme illogical-impulse-bibata-modern-classic-bin
yay -S thunar gvfs tumbler eza bottom htop
yay -S libreoffice-fresh
yay -S spotify ncspot discord code
yay -S blueman bluez
systemctl enable bluetooth
yay -S pipewire pipewire-pulse pipewire-alsa pipewire-jack pavucontrol pulsemixer
systemctl --user enable pipewire.service pipewire-pulse.service
systemctl --user start pipewire.service pipewire-pulse.service
yay -S gnome-network-displays gst-plugins-bad
sudo systemctl enable avahi-daemon
hyprpm add https://github.com/virtcode/hypr-dynamic-cursors
hyprpm enable dynamic-cursors
sudo cp -f -r ~/Dotfiles/wallpapers ~/
sudo cp -r -f ~/Dotfiles/.config/* ~/.config/
sudo cp -r -f ~/Dotfiles/.bashrc ~/
notify-send "Open Terminal with MOD+Q" "Hello $USER,\nThank you for downloading my Dotfiles\n-EF"

View File

@ -1,81 +0,0 @@
#!/bin/bash
# Ask if they want automatic or manual installation
read -p "Do you want automatic (default) or manual installation? (a/m): " install_choice
install_choice=${install_choice:-a} # Default to 'a' if empty
# Ask if they want to backup their .config
read -p "Do you want to backup your current .config directory? (y/n, default: y): " backup_choice
backup_choice=${backup_choice:-y} # Default to 'y' if empty
if [[ "$backup_choice" == "y" ]]; then
cp -r ~/.config ~/.config_backup
echo "Backup of .config created at ~/.config_backup"
fi
# Automatic install section
if [[ $install_choice == "a" ]]; then
sudo chmod -R 777 $HOME
yay -S reflector rsync python-pywal16 swww waybar swaync starship myfetch neovim python-pywalfox hypridle hyprpicker hyprshot hyprlock pyprland wlogout fd cava brightnessctl clock-rs-git nerd-fonts nwg-look qogir-icon-theme materia-gtk-theme illogical-impulse-bibata-modern-classic-bin thunar gvfs tumbler eza bottom htop libreoffice-fresh spotify ncspot discord code blueman bluez pipewire pipewire-pulse pipewire-alsa pipewire-jack pavucontrol pulsemixer gnome-network-displays gst-plugins-bad
sudo reflector --country 'US' --latest 10 --sort rate --save /etc/pacman.d/mirrorlist
systemctl enable bluetooth
systemctl --user enable pipewire.service
systemctl --user enable pipewire-pulse.service
systemctl --user start pipewire.service
systemctl --user start pipewire-pulse.service
sudo systemctl enable avahi-daemon
# Set wallpaper
wal -i ~/Dotfiles/wallpapers/pywallpaper.jpg -n
# Dynamic-Cursors setup
hyprpm add https://github.com/virtcode/hypr-dynamic-cursors
hyprpm enable dynamic-cursors
# Copy files
sudo cp -a ~/Dotfiles/wallpapers ~/
sudo cp -a ~/Dotfiles/.config/* ~/.config/
sudo cp -a ~/Dotfiles/.bashrc ~/
notify-send "Open Terminal with MOD+Q" "Hello $USER,\nThank you for downloading my Dotfiles\n-EF"
# Manual install section
elif [[ $install_choice == "m" ]]; then
sudo chmod -R 777 $HOME
read -p "Do you want to change your mirrorlist to the best one for US? (y/n, default: y): " mirror_choice
mirror_choice=${mirror_choice:-y} # Default to 'y' if empty
if [[ "$mirror_choice" == "y" ]]; then
yay -S reflector rsync
sudo reflector --country 'US' --latest 10 --sort rate --save /etc/pacman.d/mirrorlist
fi
# Confirm each package installation
for package in python-pywal16 swww waybar swaync starship myfetch neovim python-pywalfox hypridle hyprpicker hyprshot hyprlock pyprland wlogout fd cava brightnessctl clock-rs-git nerd-fonts nwg-look qogir-icon-theme materia-gtk-theme illogical-impulse-bibata-modern-classic-bin thunar gvfs tumbler eza bottom htop libreoffice-fresh spotify ncspot discord code; do
read -p "Do you want to install $package? (y/n, default: y): " choice
choice=${choice:-y} # Default to 'y' if empty
if [[ "$choice" == "y" ]]; then
yay -S $package
clear
fi
done
wal -i ~/Dotfiles/wallpapers/pywallpaper.jpg -n
# Ask for bluetooth
read -p "Do you want to install Bluetooth support? (y/n, default: y): " bluetooth_choice
bluetooth_choice=${bluetooth_choice:-y} # Default to 'y' if empty
if [[ "$bluetooth_choice" == "y" ]]; then
yay -S blueman bluez
systemctl enable bluetooth
fi
# Ask for Pipewire and Network Displays
read -p "Do you want to configure Pipewire and Network Displays? (y/n, default: y): " pipewire_choice
pipewire_choice=${pipewire_choice:-y} # Default to 'y' if empty
if [[ "$pipewire_choice" == "y" ]]; then
yay -S pipewire pipewire-pulse pipewire-alsa pipewire-jack pavucontrol pulsemixer gnome-network-displays gst-plugins-bad
systemctl --user enable pipewire.service
systemctl --user enable pipewire-pulse.service
systemctl --user start pipewire.service
systemctl --user start pipewire-pulse.service
fi
# Dynamic-Cursors setup
read -p "Do you want to enable Dynamic-Cursors? (y/n, default: y): " cursors_choice
cursors_choice=${cursors_choice:-y} # Default to 'y' if empty
if [[ "$cursors_choice" == "y" ]]; then
hyprpm add https://github.com/virtcode/hypr-dynamic-cursors
hyprpm enable dynamic-cursors
fi
# Copy files
sudo cp -a ~/Dotfiles/wallpapers ~/
sudo cp -a ~/Dotfiles/.config/* ~/.config/
sudo cp -a ~/Dotfiles/.bashrc ~/
notify-send "Open Terminal with MOD+Q" "Hello $USER,\nThank you for downloading my Dotfiles\n-EF"
fi

View File

@ -1,5 +0,0 @@
#!/bin/bash
yay -S nwg-look qogir-icon-theme materia-gtk-theme illogical-impulse-bibata-modern-classic-bin
echo "___________________________________________"
echo "Use nwg-look to set gtk themes for hyprland"
echo "___________________________________________"

View File

@ -1,5 +0,0 @@
#!/bin/bash
yay -S hyprlock pywal
wal -i ~/Dotfiles/wallpapers/pywallpaper.jpg
sudo cp -a ~/Dotfiles/.config/wal ~/.config/
sudo cp -a ~/Dotfiles/.config/hypr/hyprlock.conf ~/.config/hypr/

View File

@ -1,49 +0,0 @@
#!/bin/bash
clear
echo "1. All"
echo "2. waybar"
echo "3. wofi"
echo "4. swaync"
echo "5. hyprlock"
echo "6. nvim"
echo "7. wlogout"
echo "8. wallpaper solution"
echo "9. starship"
echo "0. GTK themes"
read -p "Please choose what to install (1,2,3,4,5,6,7,8,9,0): " choice
if [ "$choice" -eq 1 ]; then
clear
chmod +x ~/Dotfiles/InstallScripts/fullinstall.sh && ~/Dotfiles/InstallScripts/fullinstall.sh
elif [ "$choice" -eq 2 ]; then
clear
chmod +x ~/Dotfiles/InstallScripts/waybarinstall.sh && ~/Dotfiles/InstallScripts/waybarinstall.sh
elif [ "$choice" -eq 3 ]; then
clear
chmod +x ~/Dotfiles/InstallScripts/wofiinstall.sh && ~/Dotfiles/InstallScripts/wofiinstall.sh
elif [ "$choice" -eq 4 ]; then
clear
chmod +x ~/Dotfiles/InstallScripts/swayncinstall.sh && ~/Dotfiles/InstallScripts/swayncinstall.sh
elif [ "$choice" -eq 5 ]; then
clear
chmod +x ~/Dotfiles/InstallScripts/hyprlockinstall.sh && ~/Dotfiles/InstallScripts/hyprlockinstall.sh
elif [ "$choice" -eq 6 ]; then
clear
chmod +x ~/Dotfiles/InstallScripts/nviminstall.sh && ~/Dotfiles/InstallScripts/nviminstall.sh
elif [ "$choice" -eq 7 ]; then
clear
chmod +x ~/Dotfiles/InstallScripts/wlogoutinstall.sh && ~/Dotfiles/InstallScripts/wlogoutinstall.sh
elif [ "$choice" -eq 8 ]; then
clear
chmod +x ~/Dotfiles/InstallScripts/wallpapersolution.sh && ~/Dotfiles/InstallScripts/wallpapersolution.sh
elif [ "$choice" -eq 9 ]; then
clear
chmod +x ~/Dotfiles/InstallScripts/starshipinstall.sh && ~/Dotfiles/InstallScripts/starshipinstall.sh
elif [ "$choice" -eq 0 ]; then
clear
chmod +x ~/Dotfiles/InstallScripts/gtkthemesinstall.sh && ~/Dotfiles/InstallScripts/gtkthemesinstall.sh
else
echo "Invalid choice. Try Again"
fi

View File

@ -1,4 +0,0 @@
#!/bin/bash
yay -S neovim pywal lazygit
wal -i ~/Dotfiles/wallpapers/pywallpaper.jpg
sudo cp -a ~/Dotfiles/.config/nvim ~/.config/

View File

@ -1,3 +0,0 @@
#!/bin/bash
yay -S starship
sudo cp -a ~/Dotfiles/.config/starship.toml ~/.config/

View File

@ -1,4 +0,0 @@
#!/bin/bash
yay -S swaync gvfs pywal
wal -i ~/Dotfiles/wallpapers/pywallpaper.jpg
sudo cp -a ~/Dotfiles/.config/swaync ~/.config/

View File

@ -1,6 +0,0 @@
#!/bin/bash
yay -S swww pywal fd wofi
wal -i ~/Dotfiles/wallpapers/pywallpaper.jpg
sudo cp -a ~/Dotfiles/.config/hypr/wallpaper.sh ~/.config/hypr/wallpaper.sh
sudo cp -a ~/Dotfiles/.config/wofi/config1 ~/.config/wofi/
sudo cp -a ~/Dotfiles/.config/wofi/style1.css ~/.config/wofi/

View File

@ -1,6 +0,0 @@
#!/bin/bash
yay -S waybar hyprpicker otf-codenewroman-nerd pywal
wal -i ~/Dotfiles/wallpapers/pywallpaper.jpg
yay -S blueman bluez
systemctl enable bluetooth
sudo cp -a ~/Dotfiles/.config/waybar ~/.config/

View File

@ -1,4 +0,0 @@
#!/bin/bash
yay -S wlogout pywal
wal -i ~/Dotfiles/wallpapers/pywallpaper.jpg
sudo cp -a ~/Dotfiles/.config/wlogout ~/.config/

View File

@ -1,4 +0,0 @@
#!/bin/bash
yay -S wofi pywal
wal -i ~/Dotfiles/wallpapers/pywallpaper.jpg
sudo cp -a ~/Dotfiles/.config/wofi ~/.config/

59
install.sh Normal file
View File

@ -0,0 +1,59 @@
#!/bin/bash
# Install pacman packages
for package in \
scrcpy \
lazygit \
; do
sudo pacman -S $package
clear
done
# Install yay packages
for package in \
python-pywal16 \
swww waybar \
myfetch \
neovim \
python-pywalfox \
hypridle \
hyprshot \
hyprlock \
pyprland \
swaync \
wlogout \
nerd-fonts \
htop \
nvtop \
yazi \
discord \
blueman \
bluez \
; do
yay -S $package
clear
done
systemctl enable bluetooth
# Install Configs
wal -i ~/Dotfiles/wallpapers/pywallpaper.jpg
sudo cp -a ~/Dotfiles/.config/hypr/wallpaper.sh ~/.config/hypr/wallpaper.sh
sudo cp -a ~/Dotfiles/.config/wofi/config1 ~/.config/wofi/
sudo cp -a ~/Dotfiles/.config/wofi/style1.css ~/.config/wofi/
sudo cp -a ~/Dotfiles/.config/hypr/hyprlock.conf ~/.config/hypr/
sudo cp -a ~/Dotfiles/.config/waybar ~/.config/
sudo cp -a ~/Dotfiles/.config/wofi ~/.config/
sudo cp -a ~/Dotfiles/.config/wlogout ~/.config/
sudo cp -a ~/Dotfiles/.config/wal ~/.config/
sudo cp -a ~/Dotfiles/.config/nvim ~/.config/
sudo cp -a ~/Dotfiles/.config/swayn ~/.config/
sudo cp -a ~/Dotfiles/wallpapers ~/
sudo cp -a ~/Dotfiles/.bashrc ~/
git config --global user.email "adrien.bouvais.pro@gmail.com"
git config --global user.name "adrien"