Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added install.sh file #4

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .config/cava/config

This file was deleted.

9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,12 @@ Hope you enjoy it :3
</p>

## Installation
<details>
<summary>Automatic installation command (for ArchLinux)</summary>
First install oh-my-zsh: <code>sudo pacman -S wget && sh -c "$(wget -O- https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"</code><br/>
And start install.sh (in dotfiles folder): <code>bash ./install.sh</code>
</details>

See the [install guide](https://github.com/LierB/dotfiles/blob/master/installation.md) on how to manually install this rice yourself.
> [!NOTE]
> See the [install guide](https://github.com/LierB/dotfiles/blob/master/installation.md) on how to manually install this rice yourself.

An automatic install script will follow.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
55 changes: 55 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# Created by m3tozz for LierB <3
# https://github.com/LierB/dotfiles/
clear
echo -e '\e[1;34m Backing Up...\033[0m'
mkdir Backup && cp -r /home/$USER/.config/btop/ /home/$USER/.config/cava/ /home/$USER/.config/fastfetch/ /home/$USER/.config/hypr/ /home/$USER/.config/kitty/ /home/$USER/.config/neofetch/ Backup/
cp -r /home/$USER/.zshrc Backup/

echo -e '\e[1;34m Installing required packages\033[0m'
sudo pacman -S git zsh kitty waybar hyprlock wofi btop pavucontrol blueman networkmanager nm-connection-editor imagemagick
mkdir appsmake
cd appsmake
git clone https://aur.archlinux.org/python-pywal.git && cd python-pywal && makepkg -si && cd ..
git clone https://aur.archlinux.org/wlogout.git && cd wlogout && makepkg -si && cd ..
git clone https://aur.archlinux.org/swww.git && cd swww && makepkg -si && cd ..
git clonehttps://aur.archlinux.org/grimblast-git.git && cd swww && makepkg -si && cd .. && cd..

banner(){
echo -ne "\e[0;32m
Do you want to install optional packages? (Y/N)" ; read islem
}

banner
if [[ $islem == y || $islem == Y ]]; then
echo -e '\e[1;34m Installing optional packages\033[0m'
sudo pacman -S fastfetch neofetch zathura zoxide
cd appsmake
git clone https://aur.archlinux.org/cava.git && cd cava && makepkg -si && cd ..
git clone https://aur.archlinux.org/tty-clock.git && cd tty-clock && makepkg -si && cd ..
git clone https://aur.archlinux.org/snake.git && cd snake && makepkg -si && cd .. && cd ..

echo -e '\e[1;34mCopying config files...\033[0m'
rm -r /home/$USER/.zshrc
cp -r .zshrc /home/$USER/
rm -r /home/$USER/.config/btop /home/$USER/.config/cava /home/$USER/.config/fastfetch /home/$USER/.config/hypr /home/$USER/.config/kitty /home/$USER/.config/neofetch
cd config/ && cp -r btop cava fastfetch-theme-selector fastfetch hypr kitty neofetch wal waybar wlogout wofi zathura /home/$USER/.config/
cd ..
sleep 3
clear
cd ..
echo -e '\e[1;34mThe files have been uploaded to your system and the necessary packages have been installed.'
echo -e '\e[31mEnjoy ricing!\033[0m'

elif [[ $islem == n || $islem == N ]]; then
echo -e '\e[1;34mCopying config files...\033[0m'
rm -r /home/$USER/.zshrc
cp -r .zshrc /home/$USER/
rm -r /home/$USER/.config/btop /home/$USER/.config/cava /home/$USER/.config/fastfetch /home/$USER/.config/hypr /home/$USER/.config/kitty /home/$USER/.config/neofetch
cd config/ && cp -r btop cava fastfetch-theme-selector fastfetch hypr kitty neofetch wal waybar wlogout wofi zathura /home/$USER/.config/
cd ..
sleep 3
clear
cd ..
echo -e '\e[1;34mThe files have been uploaded to your system and the necessary packages have been installed.'
echo -e '\e[31mEnjoy ricing!\033[0m'
fi