Update install.sh

This commit is contained in:
FURK4NGG
2025-08-24 12:00:46 +03:00
committed by GitHub
parent 942aafa644
commit b82c38b225
+32 -19
View File
@@ -6,30 +6,20 @@ RED="\e[31m"
NC="\e[0m" # reset NC="\e[0m" # reset
# Kurulacak paket listesi # Kurulacak paket listesi
PACKAGES="linux linux-zen hyprlock wlogout sddm hyprpaper hyprland wlroots xdg-desktop-portal-hyprland qt5-graphicaleffects waybar ttf-twemoji swaync wl-clipboard kitty btop rofi gammastep grim slurp wf-recorder mpv atril ristretto thunar thunar-archive-plugin thunar-volman xarchiver gparted gvfs udisk2 baobab zip unzip unrar p7zip tar networkmanager network-manager-applet wget git mousepad vscodium 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 xfce4-network-manager" 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 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="network-manager-applet"
echo -e "${GREEN}Do you want to install documents? (y/n)${NC}" echo -e "${GREEN}Do you want to install documents? (y/n)${NC}"
read -r answer read -r answer
if [[ "$answer" == "y" || "$answer" == "Y" ]]; then if [[ "$answer" == "y" || "$answer" == "Y" ]]; then
echo -e "${GREEN}Installing packages: $PACKAGES ...${NC}" echo -e "${GREEN}Installing packages: $PACKAGES ...${NC}"
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si
sudo pacman -Syu --noconfirm $PACKAGES sudo pacman -Syu --noconfirm $PACKAGES
yay -S --noconfirm $PACKAGES-Y
if [[ $? -eq 0 ]]; then if [[ $? -eq 0 ]]; then
echo -e "${GREEN}Download and installation completed successfully!${NC}"
# SDDM servisini enable + start (kurulum başarılı olduktan sonra)
echo -e "${GREEN}Enabling services...${NC}"
cd Arch_Hyprland_dots
sudo cp -r .config/ /home/$USER/
sudo cp -r themes_bg/modest-dark/ /usr/share/icons/
sudo cp themes_bg/wallpaper-2.png /home/$USER/Resimler/wallpapers/wallpaper-2.png
sudo cp boot/loader/loader.conf /boot/loader/loader.conf
sudo systemctl enable sddm sudo systemctl enable sddm
sudo systemctl start sddm sudo systemctl start sddm
@@ -44,10 +34,8 @@ if [[ "$answer" == "y" || "$answer" == "Y" ]]; then
sudo systemctl enable --now udisks2 sudo systemctl enable --now udisks2
systemctl --user daemon-reload echo -e "${GREEN}Download and installation completed successfully!${NC}"
systemctl --user enable --now gammastep-refresh.timer
echo -e "${GREEN}Enabling services finished succesfully${NC}"
else else
echo -e "${RED}Installation failed. Please check errors.${NC}" echo -e "${RED}Installation failed. Please check errors.${NC}"
exit 1 exit 1
@@ -56,6 +44,31 @@ else
echo -e "${RED}Skipping installation.${NC}" echo -e "${RED}Skipping installation.${NC}"
fi 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}"
sudo cp -r .config/ /home/$USER/
sudo cp -r themes_bg/modest-dark/ /usr/share/icons/
sudo mkdir /home/$USER/Resimler/wallpapers/
sudo mkdir /boot/loader/
sudo cp themes_bg/wallpaper-2.png /home/$USER/Resimler/wallpapers/wallpaper-2.png
sudo cp boot/loader/loader.conf /boot/loader/loader.conf
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}" echo -e "${GREEN}Do you want to reboot now? (y/n)${NC}"
read -r reboot_ans read -r reboot_ans