From 29010ff8f46c00c106ba69bc1f5efe9b94e95e50 Mon Sep 17 00:00:00 2001 From: retrilzzy Date: Mon, 10 Feb 2025 23:27:50 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20=D1=81=D0=BA=D1=80=D0=B8=D0=BF=D1=82=20=D1=83=D1=81?= =?UTF-8?q?=D1=82=D0=B0=D0=BD=D0=BE=D0=B2=D0=BA=D0=B8=20=D0=B2=D1=81=D0=B5?= =?UTF-8?q?=D1=85=20=D0=BD=D1=83=D0=B6=D0=BD=D1=8B=D1=85=20=D0=BF=D0=B0?= =?UTF-8?q?=D0=BA=D0=B5=D1=82=D0=BE=D0=B2,=20=D0=BA=D0=BE=D0=BC=D0=BF?= =?UTF-8?q?=D0=BE=D0=BD=D0=B5=D0=BD=D1=82=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Scripts/install_packages.sh | 93 +++++++++++++++++++++++++++++++++++++ 1 file changed, 93 insertions(+) create mode 100755 Scripts/install_packages.sh diff --git a/Scripts/install_packages.sh b/Scripts/install_packages.sh new file mode 100755 index 0000000..11d6f41 --- /dev/null +++ b/Scripts/install_packages.sh @@ -0,0 +1,93 @@ +#!/bin/bash + +set -e +cd ~ + +install() { + read -r -p "Установить $1? (y/N): " choice + case "$choice" in + y|Y|yes|Yes|YES ) eval "$2" ;; + * ) echo "Пропущено: $1" ;; + esac +} + + +echo "Обновление репозиториев и системы..." +sudo pacman -Syu + +echo "⚠️ Учтите, что отсутствие некоторых пакетов приведет к некорректной работе системы!" + +install "Жизненно необходимые пакеты (git, curl)" \ + "sudo pacman -S --noconfirm git curl" + +install "Yay (AUR помощник) [Без Yay вы не сможете установить часть пакетов!]" \ + "sudo pacman -S --needed base-devel && git clone https://aur.archlinux.org/yay.git && cd yay && makepkg -si" + + +install "Xdg-utils, Xdg-desktop-portal (утилиты для работы с XDG)" \ + "sudo pacman -S --noconfirm xdg-utils xdg-desktop-portal-hyprland xdg-desktop-portal-gtk xdg-desktop-portal-wlr xdg-desktop-portal" + + +install "Network Manager (сетевые инструменты)" \ + "sudo pacman -S --noconfirm network-manager network-manager-applet" + +install "Bluez, Blueman (Bluetooth инструменты)" \ + "sudo pacman -S --noconfirm bluez bluez-tools blueman" + + +install "Brightnessctl (управления яркостью)" \ + "sudo pacman -S --noconfirm brightnessctl" + + +install "Grim, Hyprshot (cкриншоты)" \ + "sudo pacman -S --noconfirm grim && yay -S --noconfirm hyprshot" + + +install "Waybar (панель)" "sudo pacman -S --noconfirm waybar" + + +install "Rofi (меню запуска)" "sudo pacman -S --noconfirm rofi" + +install "Cliphist (буфер обмена)" "sudo pacman -S --noconfirm wl-clipboard cliphist" + + +install "Wlogout (меню выключения)" "yay -S --noconfirm wlogout" + + +install "Kitty (терминал)" "sudo pacman -S --noconfirm kitty" + +install "Zsh + Oh My Zsh (оболочка)" \ + "sudo pacman -S --noconfirm zsh \ + && sh -c \"$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)\"" + +install "Powerlevel10k (тема для Zsh)" \ + "git clone --depth=1 https://github.com/romkatv/powerlevel10k.git \${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k" + +install "Плагины для Zsh" \ + "git clone https://github.com/zsh-users/zsh-syntax-highlighting.git \${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && \ + git clone https://github.com/zsh-users/zsh-autosuggestions \${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions" + + +install "Fastfetch (информация о системе)" "sudo pacman -S --noconfirm fastfetch" + + +install "Nwg-look (настройка GTK3)" "sudo pacman -S --noconfirm nwg-look" + + +install "Swaync (уведомления)" "sudo pacman -S --noconfirm swaync" + + +install "Waypaper (обои)" "yay -S --noconfirm waypaper" + +install "Swww (статичные обои)" "sudo pacman -S --noconfirm swww" + +install "Mpvpaper (видео обои)" "sudo pacman -S --noconfirm mpvpaper" + + +install "Emote (выбор эмодзи)" "yay -S --noconfirm emote" + + +install "Flameshot (утилита для скриншотов)" "sudo pacman -S --noconfirm flameshot" + + +echo "✅ Установка завершена!"