Add sway installation package

main
Ensar Sarajčić 2022-07-17 20:12:11 +02:00
parent 79016b9e1c
commit dfc26b5056
9 changed files with 85 additions and 2 deletions

View File

@ -0,0 +1,10 @@
sway
mako
aerc
fish
foot
htop
ulauncher
waybar
wl-clipboard
wlogout

View File

@ -0,0 +1,10 @@
sway
mako
aerc
fish
foot
htop
ulauncher
waybar
wl-clipboard
wlogout

View File

@ -0,0 +1,10 @@
sway
mako
aerc
fish
foot
htop
ulauncher
waybar
wl-clipboard
wlogout

View File

@ -8,7 +8,7 @@ if [ "${RUN[pacman]}" = "1" ]
then then
# Install arch packages # Install arch packages
echo "Installing Arch packages..." echo "Installing Arch packages..."
sudo xargs -a $SELECTED_INSTALL_DIR/Arch pacman -S --noconfirm --needed sudo xargs -a $SELECTED_INSTALL_DIR/pacman pacman -S --noconfirm --needed
echo "Installing packages from AUR using aurfetch..." echo "Installing packages from AUR using aurfetch..."
while read p; do while read p; do

View File

@ -18,7 +18,7 @@ CURDIR=$PWD
if type pacman > /dev/null 2>&1 if type pacman > /dev/null 2>&1
then then
pacman -Qqe | grep -vx "$(pacman -Qqm)" > $PACKAGES_DIRECTORY/Arch pacman -Qqe | grep -vx "$(pacman -Qqm)" > $PACKAGES_DIRECTORY/pacman
pacman -Qqm > $PACKAGES_DIRECTORY/AUR pacman -Qqm > $PACKAGES_DIRECTORY/AUR
fi fi

View File

@ -57,3 +57,4 @@
!/sh-utils/** !/sh-utils/**
!/sh-utils/ !/sh-utils/
!/aerc/** !/aerc/**
!/aerc/

View File

@ -0,0 +1,52 @@
#!/bin/bash
declare -A SKIP=()
POSITIONAL=()
while [[ $# -gt 0 ]]; do
key="$1"
case $key in
-s|--skip)
shift # past argument
SKIP["$1"]=1
shift # past value
;;
*) # unknown option
POSITIONAL+=("$1") # save it in an array for later
shift # past argument
;;
esac
done
declare -A RUN=()
for command in "pacman" "apt" "dnf" "flatpak" "gem" "nvim" "asdf" "brew" "pacman" "pip" "pip2" "pip3";
do
if type $command > /dev/null 2>&1
then
if [ "${SKIP[$command]}" = "1" ]; then
RUN[$command]=0
else
RUN[$command]=1
fi
else
RUN[$command]=0
fi
done
# Special case for vim
if type -f vim > /dev/null 2>&1
then
if [ "${SKIP[vim]}" = "1" ]; then
RUN[vim]=0
else
RUN[vim]=1
fi
else
RUN[vim]=0
fi
export SKIP=$SKIP
export RUN=$RUN
export POSITIONAL=$POSITIONAL