dotfiles/install.sh
2025-09-27 18:38:32 +02:00

39 lines
1.6 KiB
Bash

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.