separate packages from the install script
This commit is contained in:
@@ -3,73 +3,21 @@
|
|||||||
# --needed skips already-installed packages.
|
# --needed skips already-installed packages.
|
||||||
# Only leaf packages are listed; dependencies are pulled in automatically.
|
# Only leaf packages are listed; dependencies are pulled in automatically.
|
||||||
|
|
||||||
packages=(
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||||
alacritty
|
PACKAGE_FILE="$SCRIPT_DIR/packages.txt"
|
||||||
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
|
|
||||||
)
|
|
||||||
|
|
||||||
|
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[@]}"
|
sudo pacman -S --needed "${packages[@]}"
|
||||||
|
|||||||
67
packages.txt
Normal file
67
packages.txt
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
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
|
||||||
|
kodi
|
||||||
|
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
|
||||||
Reference in New Issue
Block a user