From 7c5ef5ccf55775f08ea58ad8902e75754808d0f9 Mon Sep 17 00:00:00 2001 From: adrien Date: Fri, 2 May 2025 11:43:19 +0200 Subject: [PATCH] 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 --- InstallScripts/fullinstall-backup.sh | 25 --------- InstallScripts/fullinstall.sh | 81 ---------------------------- InstallScripts/gtkthemesinstall.sh | 5 -- InstallScripts/hyprlockinstall.sh | 5 -- InstallScripts/install.sh | 49 ----------------- InstallScripts/nviminstall.sh | 4 -- InstallScripts/starshipinstall.sh | 3 -- InstallScripts/swayncinstall.sh | 4 -- InstallScripts/wallpapersolution.sh | 6 --- InstallScripts/waybarinstall.sh | 6 --- InstallScripts/wlogoutinstall.sh | 4 -- InstallScripts/wofiinstall.sh | 4 -- install.sh | 59 ++++++++++++++++++++ 13 files changed, 59 insertions(+), 196 deletions(-) delete mode 100644 InstallScripts/fullinstall-backup.sh delete mode 100755 InstallScripts/fullinstall.sh delete mode 100755 InstallScripts/gtkthemesinstall.sh delete mode 100755 InstallScripts/hyprlockinstall.sh delete mode 100755 InstallScripts/install.sh delete mode 100755 InstallScripts/nviminstall.sh delete mode 100755 InstallScripts/starshipinstall.sh delete mode 100755 InstallScripts/swayncinstall.sh delete mode 100755 InstallScripts/wallpapersolution.sh delete mode 100755 InstallScripts/waybarinstall.sh delete mode 100755 InstallScripts/wlogoutinstall.sh delete mode 100755 InstallScripts/wofiinstall.sh create mode 100644 install.sh diff --git a/InstallScripts/fullinstall-backup.sh b/InstallScripts/fullinstall-backup.sh deleted file mode 100644 index 3010592..0000000 --- a/InstallScripts/fullinstall-backup.sh +++ /dev/null @@ -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" diff --git a/InstallScripts/fullinstall.sh b/InstallScripts/fullinstall.sh deleted file mode 100755 index a635946..0000000 --- a/InstallScripts/fullinstall.sh +++ /dev/null @@ -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 diff --git a/InstallScripts/gtkthemesinstall.sh b/InstallScripts/gtkthemesinstall.sh deleted file mode 100755 index 096d4fe..0000000 --- a/InstallScripts/gtkthemesinstall.sh +++ /dev/null @@ -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 "___________________________________________" diff --git a/InstallScripts/hyprlockinstall.sh b/InstallScripts/hyprlockinstall.sh deleted file mode 100755 index 7b4d2e9..0000000 --- a/InstallScripts/hyprlockinstall.sh +++ /dev/null @@ -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/ diff --git a/InstallScripts/install.sh b/InstallScripts/install.sh deleted file mode 100755 index b2c0f8c..0000000 --- a/InstallScripts/install.sh +++ /dev/null @@ -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 - diff --git a/InstallScripts/nviminstall.sh b/InstallScripts/nviminstall.sh deleted file mode 100755 index e4f0ada..0000000 --- a/InstallScripts/nviminstall.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -yay -S neovim pywal lazygit -wal -i ~/Dotfiles/wallpapers/pywallpaper.jpg -sudo cp -a ~/Dotfiles/.config/nvim ~/.config/ diff --git a/InstallScripts/starshipinstall.sh b/InstallScripts/starshipinstall.sh deleted file mode 100755 index 1b8a141..0000000 --- a/InstallScripts/starshipinstall.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash -yay -S starship -sudo cp -a ~/Dotfiles/.config/starship.toml ~/.config/ diff --git a/InstallScripts/swayncinstall.sh b/InstallScripts/swayncinstall.sh deleted file mode 100755 index 5cf8202..0000000 --- a/InstallScripts/swayncinstall.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -yay -S swaync gvfs pywal -wal -i ~/Dotfiles/wallpapers/pywallpaper.jpg -sudo cp -a ~/Dotfiles/.config/swaync ~/.config/ diff --git a/InstallScripts/wallpapersolution.sh b/InstallScripts/wallpapersolution.sh deleted file mode 100755 index e8a6fc3..0000000 --- a/InstallScripts/wallpapersolution.sh +++ /dev/null @@ -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/ diff --git a/InstallScripts/waybarinstall.sh b/InstallScripts/waybarinstall.sh deleted file mode 100755 index b1df08a..0000000 --- a/InstallScripts/waybarinstall.sh +++ /dev/null @@ -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/ diff --git a/InstallScripts/wlogoutinstall.sh b/InstallScripts/wlogoutinstall.sh deleted file mode 100755 index dc8d5f0..0000000 --- a/InstallScripts/wlogoutinstall.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -yay -S wlogout pywal -wal -i ~/Dotfiles/wallpapers/pywallpaper.jpg -sudo cp -a ~/Dotfiles/.config/wlogout ~/.config/ diff --git a/InstallScripts/wofiinstall.sh b/InstallScripts/wofiinstall.sh deleted file mode 100755 index ea1d8e2..0000000 --- a/InstallScripts/wofiinstall.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/bash -yay -S wofi pywal -wal -i ~/Dotfiles/wallpapers/pywallpaper.jpg -sudo cp -a ~/Dotfiles/.config/wofi ~/.config/ diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..cb115f0 --- /dev/null +++ b/install.sh @@ -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" +