separate packages from the install script
This commit is contained in:
@@ -3,73 +3,21 @@
|
||||
# --needed skips already-installed packages.
|
||||
# Only leaf packages are listed; dependencies are pulled in automatically.
|
||||
|
||||
packages=(
|
||||
alacritty
|
||||
base
|
||||
base-devel
|
||||
blueman
|
||||
bluez-utils
|
||||
clang
|
||||
efibootmgr
|
||||
extra-cmake-modules
|
||||
fastfetch
|
||||
fcitx5-configtool
|
||||
fcitx5-gtk
|
||||
feh
|
||||
firefox
|
||||
flameshot
|
||||
git
|
||||
grim
|
||||
grub-btrfs
|
||||
gst-plugin-pipewire
|
||||
gvf
|
||||
i3lock
|
||||
i3-wm
|
||||
inkscape
|
||||
inotify-tools
|
||||
krita
|
||||
libreoffice-still
|
||||
man-db
|
||||
mousepad
|
||||
neovim
|
||||
net-tools
|
||||
network-manager-applet
|
||||
ninja
|
||||
okular
|
||||
pasystray
|
||||
pavucontrol
|
||||
pipewire-alsa
|
||||
plasma-meta
|
||||
polybar
|
||||
pyright
|
||||
python-pynvim
|
||||
qt6-wayland
|
||||
ranger
|
||||
rofi
|
||||
rust-analyzer
|
||||
signal-desktop
|
||||
slurp
|
||||
snap-pac
|
||||
sof-firmware
|
||||
strawberry
|
||||
sway
|
||||
swaybg
|
||||
swayidle
|
||||
swaylock
|
||||
syncthing
|
||||
texlive-langother
|
||||
texlive-meta
|
||||
thunar
|
||||
thunar-volman
|
||||
thunderbird
|
||||
tumbler
|
||||
vala
|
||||
waybar
|
||||
wl-clipboard
|
||||
xclip
|
||||
zathura-pdf-mupdf
|
||||
zram-generator
|
||||
zsh
|
||||
)
|
||||
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||
PACKAGE_FILE="$SCRIPT_DIR/packages.txt"
|
||||
|
||||
if [[ ! -f "$PACKAGE_FILE" ]]; then
|
||||
echo "Error: $PACKAGE_FILE not found"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Read packages from file, skipping blank lines and comments
|
||||
mapfile -t packages < <(grep -v '^\s*#' "$PACKAGE_FILE" | grep -v '^\s*$')
|
||||
|
||||
if [[ ${#packages[@]} -eq 0 ]]; then
|
||||
echo "No packages found in $PACKAGE_FILE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "Installing ${#packages[@]} packages..."
|
||||
sudo pacman -S --needed "${packages[@]}"
|
||||
|
||||
Reference in New Issue
Block a user