2024-01-07 02:24:12 -05:00
|
|
|
#!/bin/sh
|
2023-02-03 04:08:44 -05:00
|
|
|
|
2023-12-28 04:19:52 -05:00
|
|
|
# Full (probably) setup for arch
|
2023-06-19 20:05:11 -04:00
|
|
|
|
2023-12-28 04:19:52 -05:00
|
|
|
set -e
|
|
|
|
|
|
|
|
# Install yay
|
|
|
|
cd
|
2024-01-09 17:42:53 -05:00
|
|
|
if [ ! "$(command -v yay)" ]; then
|
2024-01-07 02:24:12 -05:00
|
|
|
|
2023-12-28 04:19:52 -05:00
|
|
|
echo "Yay not found, installing..."
|
2023-02-04 06:31:22 -05:00
|
|
|
|
2023-06-15 16:36:30 -04:00
|
|
|
if test -d yay; then
|
|
|
|
rm -rf yay
|
2023-12-28 04:19:52 -05:00
|
|
|
fi
|
2023-02-04 06:31:22 -05:00
|
|
|
|
2023-12-28 04:19:52 -05:00
|
|
|
git clone https://aur.archlinux.org/yay.git
|
2024-01-09 17:18:18 -05:00
|
|
|
cd yay
|
|
|
|
makepkg -si --noconfirm
|
|
|
|
cd
|
|
|
|
rm -rf yay
|
2023-06-15 16:36:30 -04:00
|
|
|
else
|
2024-01-09 17:18:18 -05:00
|
|
|
printf "\nYay is already installed, skipping..."
|
2023-12-28 04:19:52 -05:00
|
|
|
fi
|
2023-06-19 20:05:11 -04:00
|
|
|
|
2024-01-07 02:24:12 -05:00
|
|
|
# Install base shell
|
2024-01-09 17:18:18 -05:00
|
|
|
if [ "$1" -ge 1 ]; then
|
2024-01-07 02:24:12 -05:00
|
|
|
|
2024-01-09 17:18:18 -05:00
|
|
|
printf "\nInstalling base shell..."
|
2024-01-07 02:24:12 -05:00
|
|
|
yay -S --needed --noconfirm \
|
|
|
|
bat \
|
|
|
|
btop \
|
|
|
|
byobu \
|
|
|
|
fd \
|
|
|
|
fzf \
|
|
|
|
man-db \
|
|
|
|
man-pages \
|
|
|
|
mosh \
|
|
|
|
neovim \
|
|
|
|
nnn \
|
2024-01-10 22:19:00 -05:00
|
|
|
npm \
|
2024-01-07 02:24:12 -05:00
|
|
|
oh-my-zsh-git \
|
2024-01-10 00:28:38 -05:00
|
|
|
python-pywal \
|
2024-01-07 02:24:12 -05:00
|
|
|
ripgrep \
|
|
|
|
rsync \
|
2024-01-09 17:00:14 -05:00
|
|
|
rubygems \
|
2024-01-07 02:24:12 -05:00
|
|
|
sl \
|
2024-01-07 03:34:34 -05:00
|
|
|
unrar \
|
2024-01-09 17:00:14 -05:00
|
|
|
unzip \
|
2024-01-07 02:24:12 -05:00
|
|
|
wget \
|
|
|
|
zsh \
|
|
|
|
|
2024-01-09 17:37:41 -05:00
|
|
|
if [ ! "$(command -v rustup)" ]; then
|
|
|
|
yay -S --needed --noconfirm rust
|
|
|
|
fi
|
2024-01-07 02:24:12 -05:00
|
|
|
fi
|
|
|
|
|
|
|
|
# Install basic GUI
|
2024-01-09 17:18:18 -05:00
|
|
|
if [ "$1" -ge 2 ]; then
|
2024-01-07 02:24:12 -05:00
|
|
|
|
2024-01-09 17:18:18 -05:00
|
|
|
printf "\nInstalling basic GUI..."
|
2024-01-07 02:24:12 -05:00
|
|
|
yay -S --needed --noconfirm \
|
2024-01-07 15:49:12 -05:00
|
|
|
acpi \
|
2024-01-07 02:24:12 -05:00
|
|
|
alacritty \
|
|
|
|
arandr \
|
|
|
|
awesome \
|
|
|
|
bluez \
|
|
|
|
chromium \
|
|
|
|
firefox-developer-edition \
|
|
|
|
maim \
|
2024-01-11 00:54:34 -05:00
|
|
|
noto-fonts \
|
|
|
|
noto-fonts-cjk \
|
|
|
|
noto-fonts-emoji \
|
2024-01-07 15:49:12 -05:00
|
|
|
nsxiv \
|
2024-01-11 00:54:34 -05:00
|
|
|
otf-font-awesome \
|
2024-01-07 02:24:12 -05:00
|
|
|
picom \
|
|
|
|
playerctl \
|
|
|
|
polkit-gnome \
|
|
|
|
redshift \
|
2024-01-11 00:54:34 -05:00
|
|
|
ttf-font-awesome \
|
2024-01-07 02:24:12 -05:00
|
|
|
unclutter \
|
|
|
|
xclip \
|
|
|
|
xorg-server \
|
|
|
|
xorg-xinit \
|
|
|
|
xorg-xrandr \
|
|
|
|
|
2024-01-09 17:18:18 -05:00
|
|
|
fi
|
2024-01-07 02:24:12 -05:00
|
|
|
|
|
|
|
# Install extras
|
2024-01-09 17:18:18 -05:00
|
|
|
if [ "$1" -ge 3 ]; then
|
2024-01-07 02:24:12 -05:00
|
|
|
|
2024-01-09 17:18:18 -05:00
|
|
|
printf "\nInstalling extras..."
|
2024-01-07 02:24:12 -05:00
|
|
|
yay -S --needed --noconfirm \
|
|
|
|
beautiful-discord-git \
|
|
|
|
caprine \
|
|
|
|
discord \
|
2024-01-07 15:49:12 -05:00
|
|
|
gimp \
|
2024-01-07 02:24:12 -05:00
|
|
|
python-pywalfox \
|
|
|
|
pywal-discord-git \
|
|
|
|
spotify-launcher \
|
|
|
|
steam \
|
|
|
|
telegram-desktop \
|
|
|
|
thunderbird \
|
|
|
|
wal-telegram-git \
|
|
|
|
|
2024-01-09 17:18:18 -05:00
|
|
|
fi
|
2023-02-03 04:08:44 -05:00
|
|
|
|
2023-12-28 04:19:52 -05:00
|
|
|
# Set shell
|
|
|
|
echo ""
|
2024-01-09 17:18:18 -05:00
|
|
|
if [ "$SHELL" = "/bin/zsh" ]; then
|
2024-01-07 02:24:12 -05:00
|
|
|
echo "Shell already set to zsh"
|
|
|
|
|
|
|
|
else
|
2024-01-09 17:18:18 -05:00
|
|
|
sudo chsh -s /bin/zsh "$USER"
|
2024-01-11 03:01:59 -05:00
|
|
|
printf "\nLog out and back in for changes to take effect.\n"
|
2024-01-07 02:24:12 -05:00
|
|
|
fi
|