1
0
Dotfiles/install.sh
Adrien Bouvais f10fb1220b revert 9907e8f6ffb42a11b1b5289fb8ab136e50a2a4a1
revert Removed wlogout, swaync and swaylock-effects
2025-10-08 07:43:12 +00:00

67 lines
1.7 KiB
Bash
Executable File

#!/bin/bash
set -e
echo "--- Installing essential packages from Pacman ---"
sudo pacman -S --noconfirm --needed \
niri \
kitty \
wofi \
xorg-xwayland \
base-devel \
git \
lazygit \
starship \
seatd \
mako \
pipewire \
wireplumber \
xdg-desktop-portal \
xdg-desktop-portal-gtk
echo "--- Installing and configuring yay (AUR Helper) ---"
if ! command -v yay &> /dev/null; then
git clone https://aur.archlinux.org/yay.git /tmp/yay
(cd /tmp/yay && makepkg -si --noconfirm)
rm -rf /tmp/yay
else
echo "yay is already installed."
fi
echo "--- Installing packages from AUR using yay ---"
yay -S --noconfirm --needed \
swayidle \
swaylock-effects \
waybar \
swaync \
wlogout \
ttf-firacode-nerd \
neovim \
yazi \
firefox
echo "--- Setting up user directories and dotfiles ---"
mkdir -p "$HOME/tmp" "$HOME/wallpapers" "$HOME/.config" "$HOME/.ssh"
git clone https://git.bouvais.lu/adrien/Dotfiles "/tmp/dotfiles" --depth 1
cp -r "/tmp/dotfiles/.config/"* "$HOME/.config/"
cp "/tmp/dotfiles/.bashrc" "$HOME/.bashrc"
cp -r "/tmp/dotfiles/wallpapers/"* "$HOME/wallpapers/"
rm -rf "/tmp/dotfiles"
echo "--- Enabling system services (seatd for Niri) ---"
# Add your user to the 'seat' group to grant hardware access
sudo usermod -aG seat "$USER"
# Enable the seatd service to run on boot
sudo systemctl enable seatd.service
echo "--- Configuring Git and SSH ---"
git config --global user.name "adrien"
git config --global user.email "git@bouvais.lu"
ssh-keygen -t rsa -b 4096 -C "git@bouvais.com" -f "$HOME/.ssh/id_rsa" -N ""
echo "--- Installation complete! ---"
echo "It is recommended to reboot now for all changes to take effect."
echo "After rebooting, log in and type 'niri' to start your session."