1
0

Update install.sh

This commit is contained in:
Adrien Bouvais 2025-10-07 18:46:23 +00:00
parent 9e432e9764
commit c40ccfaa70

View File

@ -1,66 +1,61 @@
#!/bin/bash #!/bin/bash
# Install pacman packages set -e
for package in \
scrcpy \ echo "--- Installing essential pacman packages ---"
sudo pacman -S --noconfirm --needed \
base-devel \ base-devel \
git \
scrcpy \
lazygit \ lazygit \
starship \ starship
; do
sudo pacman -S --noconfirm $package
clear
done
git clone https://aur.archlinux.org/yay.git if ! command -v yay &> /dev/null; then
cd yay echo "--- yay not found, installing... ---"
makepkg -si git clone https://aur.archlinux.org/yay.git /tmp/yay
cd ~ (cd /tmp/yay && makepkg -si --noconfirm)
rm -rf /tmp/yay
else
echo "--- yay is already installed. ---"
fi
# Install yay packages echo "--- Installing AUR and official repository packages with yay ---"
for package in \ yay -S --noconfirm --needed \
python-pywal16 \ niri \
python-pywalfox \ swayidle \
swww waybar \ swaylock-effects \
myfetch \ grim \
neovim \ slurp \
python-pywalfox \
hypridle \
hyprshot \
hyprlock \
pyprland \
swaync \ swaync \
wlogout \ wlogout \
nerd-fonts \ ttf-firacode-nerd \
myfetch \
neovim \
htop \ htop \
nvtop \ nvtop \
yazi \ yazi \
discord \ discord \
firefox \ firefox
; do
yay -S --noconfirm $package
clear
done
# Install Configs echo "--- Copying configuration files from ~/Dotfiles ---"
sudo cp -rf ~/Dotfiles/.config/* ~/.config/ if [ -d "$HOME/Dotfiles" ]; then
sudo cp ~/Dotfiles/.bashrc ~/.bashrc cp -r "$HOME/Dotfiles/.config/"* "$HOME/.config/"
git config --global user.email "adrien.bouvais.pro@gmail.com" cp "$HOME/Dotfiles/.bashrc" "$HOME/.bashrc"
mkdir -p "$HOME/wallpapers"
cp -r "$HOME/Dotfiles/wallpapers/"* "$HOME/wallpapers/"
else
echo "WARNING: ~/Dotfiles directory not found. Skipping config installation."
fi
echo "--- Configuring Git and SSH ---"
git config --global user.name "adrien" git config --global user.name "adrien"
ssh-keygen -t rsa -b 4096 -C "adrien.bouvais.pro@gmail.com" -f ~/.ssh/id_rsa -N "" git config --global user.email "git@bouvais.lu"
# Wallpaper if [ ! -f "$HOME/.ssh/id_rsa" ]; then
mkdir ~/wallpapers echo "--- Generating a new SSH key ---"
sudo cp -rf ~/Dotfiles/wallpapers/* ~/wallpapers/ ssh-keygen -t rsa -b 4096 -C "git@bouvais.com" -f "$HOME/.ssh/id_rsa" -N ""
wal -i ~/wallpapers/pywallpaper.jpg else
pywalfox install echo "--- SSH key already exists, skipping generation. ---"
fi
swww img ~/.config/pywallpaper.jpg --transition-type any --transition-fps 60 --transition-duration .5
wal -i ~/.config/pywallpaper.jpg -n --cols16
swaync-client --reload-css
cat ~/.cache/wal/colors-kitty.conf > ~/.config/kitty/current-theme.conf
pywalfox update
hyprctl reload
echo "Dont forget to add Pywalfox extension to Firefox https://addons.mozilla.org/en-US/firefox/addon/pywalfox/"
echo "Then run 'pywalfox update'"