From 1a33ae61cad85ee47644e9258bac91a7856d2dbb Mon Sep 17 00:00:00 2001 From: blackctac Date: Sat, 27 Sep 2025 18:38:32 +0200 Subject: [PATCH] Upload files to "/" --- install.sh | 39 +++++++++++++++++++++++++++++++++++++++ uninstall.sh | 18 ++++++++++++++++++ 2 files changed, 57 insertions(+) create mode 100644 install.sh create mode 100644 uninstall.sh diff --git a/install.sh b/install.sh new file mode 100644 index 0000000..370dacb --- /dev/null +++ b/install.sh @@ -0,0 +1,39 @@ +echo "Welcome! This script will help you install my dotfiles on your computer, 100% automated. To get started, please enter your password. (you might have to do it twice)" +echo "1/5: Installing Dependencies...alias please do='sudo'" +sudo pacman -Sy hyprland cyme fastfetch zenith zsh socat sof-firmware unzip discord obs-studio wget alacritty rofi waybar alacritty swaybg git go --noconfirm +git clone https://aur.archlinux.org/yay-git.git +cd yay-git +makepkg -si --noconfirm +cd ~/ +yay -S hyprshot localsend-bin spotify activate-linux onlyoffice-bin mpvpaper brave-bin swaylock-effects --noconfirm +echo "2/5: Configuring Dotfiles..." +cd ~/dotfiles-main +mv hypr/ ~/.config/ +mv waybar/ ~/.config +mv swaylock/ ~/.config +mv fastfetch ~/.config +mv wall/ ~/ +mv .bashrc ~/ +chmod +x ~/.config/hypr/waybar/scripts/*.sh +chmod +x ~/.config/hypr/*.sh +echo "3/5: Installing Fonts..." +wget https://github.com/ryanoasis/nerd-fonts/releases/download/v3.3.0/JetBrainsMono.zip +mkdir -p ~/.fonts +mv JetBrainsMono.zip ~/.fonts +cd ~/.fonts +unzip JetBrainsMono.zip +rm readme.md +fc-cache +echo "4/5: Configuring rofi..." +cd ~/dotfiles-main +mkdir -p ~/.config/rofi/launchers/type-1 +mkdir -p ~/.config/rofi/colors +mv ~/dotfiles-main/launchers/type-1/* ~/.config/rofi/launchers/type-1 +mv ~/dotfiles-main/colors/* ~/.config/rofi/colors +rm -rf ~/dotfiles-main/rofi +echo "5/5: Configuring sound and cleaning up..." +sudo pacman -S pulseaudio --noconfirm +sudo pacman -S pipewire wireplumber xdg-desktop-portal-hyprland --noconfirm +sudo pacman -Scc --noconfirm +yay -Scc --noconfirm +echo Done! Please reboot your system to finish installation. diff --git a/uninstall.sh b/uninstall.sh new file mode 100644 index 0000000..2982fe8 --- /dev/null +++ b/uninstall.sh @@ -0,0 +1,18 @@ +read -p "Do you want to uninstall? (yes/no): " answer + +if [[ "$answer" == "yes" ]]; then + if pgrep -x "Hyprland" > /dev/null; then + echo "Hyprland is running. Please exit Hyprland by pressing CTRL + M and run the script again." + else + echo "Proceeding with the uninstallation..." + rm -rf ~/.config/hypr + rm -rf ~/.config/waybar + rm -rf ~/.config/swaylock + rm -rf ~/.config/fastfetch + sudo pacman -Rns hyprland fastfetch unzip alacritty rofi swaybg go yay activate-linux hyprshot spotify swaylock-effects --noconfirm + echo "Uninstallation Completed! Please reboot your system." + fi +else + echo "Uninstallation canceled." +fi +