Doors/scripts/install_arch

111 lines
1.9 KiB
Text
Raw Normal View History

2024-01-07 02:24:12 -05:00
#!/bin/sh
2023-02-03 04:08:44 -05:00
# Full (probably) setup for arch
2023-06-19 20:05:11 -04:00
set -e
# Install yay
cd
2023-06-15 16:36:30 -04:00
if ! type "yay" &> /dev/null; then
2024-01-07 02:24:12 -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
fi
2023-02-04 06:31:22 -05:00
git clone https://aur.archlinux.org/yay.git
cd yay
makepkg -si --noconfirm
cd
2023-02-06 09:56:30 -05:00
rm -rf yay
2023-06-15 16:36:30 -04:00
else
echo -e "\nYay is already installed, skipping..."
fi
2023-06-19 20:05:11 -04:00
2024-01-07 02:24:12 -05:00
# Install base shell
if [ $1 -ge 1 ]; then
echo -e "\nInstalling base shell..."
yay -S --needed --noconfirm \
bat \
btop \
byobu \
fd \
fzf \
man-db \
man-pages \
mosh \
neovim \
nnn \
oh-my-zsh-git \
ripgrep \
rsync \
2024-01-09 17:00:14 -05:00
rubygems \
rustup \
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 \
fi
# Install basic GUI
if [ $1 -ge 2 ]; then
echo -e "\nInstalling basic GUI..."
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-07 15:49:12 -05:00
nsxiv \
2024-01-07 02:24:12 -05:00
otf-font-awesome \
picom \
playerctl \
polkit-gnome \
2024-01-07 15:49:12 -05:00
python-pywal \
2024-01-07 02:24:12 -05:00
redshift \
ttf-font-awesome \
unclutter \
xclip \
xorg-server \
xorg-xinit \
xorg-xrandr \
fi
# Install extras
if [ $1 -ge 3 ]; then
echo -e "\nInstalling extras..."
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 \
fi
2023-02-03 04:08:44 -05:00
# Set shell
echo ""
2024-01-07 02:24:12 -05:00
if [ $SHELL == "/bin/zsh" ]; then
echo "Shell already set to zsh"
else
sudo chsh -s /bin/zsh $USER
echo -e "\nLog out and back in for changes to take effect."
fi