diff --git a/install.sh b/install.sh index babc122..f0c0d1f 100755 --- a/install.sh +++ b/install.sh @@ -2,36 +2,64 @@ set -e +echo "--- Installing essential packages from Pacman ---" sudo pacman -S --noconfirm --needed \ niri \ + kitty \ + wofi \ + xorg-xwayland \ base-devel \ git \ lazygit \ - starship + starship \ + seatd \ + mako \ + pipewire \ + wireplumber \ + xdg-desktop-portal \ + xdg-desktop-portal-gtk -git clone https://aur.archlinux.org/yay.git /tmp/yay -(cd /tmp/yay && makepkg -si --noconfirm) -rm -rf /tmp/yay +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 \ + swaylock-effects \ waybar \ ttf-firacode-nerd \ neovim \ yazi \ firefox -mkdir -p "$HOME/tmp" +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" -mkdir -p "$HOME/wallpapers" cp -r "/tmp/dotfiles/wallpapers/"* "$HOME/wallpapers/" -rm -rf /tmp/yay +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 "" \ No newline at end of file +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." \ No newline at end of file