Files
Arch_Hyprland_dots/install.sh
T
2026-01-07 19:42:24 +03:00

102 lines
3.5 KiB
Bash
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
#!/bin/bash
# Renkli yazılar için
GREEN="\e[32m"
RED="\e[31m"
NC="\e[0m" # reset
# Kurulacak paket listesi
PACKAGES="linux linux-zen hyprlock xorg-server mesa vulkan-radeon libva libva-utils wayland wayland-protocols mesa vulkan-radeon base-devel wlogout sddm hyprpaper hyprland xdg-desktop-portal xdg-desktop-portal-hyprland libinput libxkbcommon qt5-graphicaleffects waybar ttf-twemoji swaync wl-clipboard kitty btop rofi gammastep grim slurp wf-recorder mpv atril ristretto hyprpicker thunar thunar-archive-plugin thunar-volman xarchiver gparted gvfs udisk2 baobab zip unzip unrar p7zip tar networkmanager network-manager-applet wget git mousepad tumbler pipewire pipewire-pulse wireplumber alsa-utils pavucontrol pacman yay flatpak nvidia nvidia-settings nvidia-utils xfce4-panel xfce4-session xfce4-settings xfconf xfdesktop xfwm4 xfce4-terminal xfce4-notify-plugin xfce4-clipman-plugin"
PACKAGES-Y="bluez bluez-utils blueman"
echo -e "${GREEN}Do you want to install documents? (y/n)${NC}"
read -r answer
if [[ "$answer" == "y" || "$answer" == "Y" ]]; then
echo -e "${GREEN}Installing packages: $PACKAGES ...${NC}"
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
sudo pacman -Syu --noconfirm $PACKAGES
yay -S --noconfirm $PACKAGES-Y
if [[ $? -eq 0 ]]; then
sudo systemctl enable sddm
sudo systemctl start sddm
systemctl --user enable --now pipewire
systemctl --user enable --now pipewire-pulse
systemctl --user enable --now wireplumber
xdg-mime default mpv.desktop video/mp4 xdg-mime default mpv.desktop video/x-matroska
xdg-mime default mpv.desktop video/webm
sudo systemctl enable --now NetworkManager
sudo systemctl enable --now bluetooth
sudo systemctl enable --now udisks2
echo -e "${GREEN}Download and installation completed successfully!${NC}"
else
echo -e "${RED}Installation failed. Please check errors.${NC}"
exit 1
fi
else
echo -e "${RED}Skipping installation.${NC}"
fi
echo -e "${GREEN}Do you want to install configs? (y/n)${NC}"
read -r answer
if [[ "$answer" == "y" || "$answer" == "Y" ]]; then
# SDDM servisini enable + start (kurulum başarılı olduktan sonra)
echo -e "${GREEN}Enabling services...${NC}"
cd /Arch_Hyprland_dots/
echo -e "${GREEN}Do you want to overwrite if you have the docs? (y/n)${NC}"
read -r answer
if [[ "$answer" == "y" || "$answer" == "Y" ]]; then
sudo cp -rf .config/ /home/$USER/
sudo cp -rf themes_bg/modest-dark/ /usr/share/icons/
else
sudo cp -ri .config/ /home/$USER/
sudo cp -ri themes_bg/modest-dark/ /usr/share/icons/
fi
hyprctl reload
sudo mkdir /etc/xdg/swaync/
mkdir -p ~/.local/bin
sudo cp ~/.config/swaync/style.css /etc/xdg/swaync/style.css
sudo cp ~/.config/scripts/gammastep-toggle ~/.local/bin/gammastep-toggle
sudo chmod +x ~/.config/scripts/*.sh
sudo chmod +x ~/.local/bin/gammastep-toggle
sudo mkdir /home/$USER/Resimler/wallpapers/
sudo cp themes_bg/wallpaper-2.png /home/$USER/Resimler/wallpapers/wallpaper-2.png
sudo mkdir /boot/loader/
sudo cp boot/loader/loader.conf /boot/loader/loader.conf
sudo chmod +x ~/.config/waybar/scripts/weather.py
systemctl --user daemon-reload
systemctl --user enable --now gammastep-refresh.timer
echo -e "${GREEN}Enabling services finished succesfully${NC}"
else
echo -e "${RED}Skipping configs setup.${NC}"
fi
echo -e "${GREEN}Do you want to reboot now? (y/n)${NC}"
read -r reboot_ans
if [[ "$reboot_ans" == "y" || "$reboot_ans" == "Y" ]]; then
echo -e "${GREEN}Rebooting...${NC}"
sudo reboot
else
echo -e "${GREEN}Installation completed successfully!${NC}"
fi