Upload files to "/"

This commit is contained in:
blackctac 2025-09-27 18:38:32 +02:00
parent ac1e37e0b1
commit 1a33ae61ca
2 changed files with 57 additions and 0 deletions

39
install.sh Normal file
View file

@ -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.

18
uninstall.sh Normal file
View file

@ -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