arch-install/install_desktop.sh

70 lines
1.8 KiB
Bash
Raw Normal View History

2023-11-17 18:30:06 -08:00
# /bin/bash
set -e
if [[ $EUID -ne 0 ]]; then
echo "Must run as root."
exit
fi
echo "Installing packages."
# Base Packages.
sudo pacman -S which base-devel
# Display Elements.
sudo pacman -S plymouth sddm wayland sway swaybg swaylock swayidle wofi waybar
# Theming.
sudo pacman -S ttf-liberation sddm kitty zsh adobe-source-code-pro-fonts ttf-sourcecodepro-nerd ttf-dejavu arc-gtk-theme papirus-icon-theme
echo "Installing yay"
mkdir opt
pushd opt
git clone https://aur.archlinux.org/yay.git
pushd yay
makepkg -si
popd
popd
echo "Installing plymouth"
# This is likely a bit too brittle.
sed -i 's/kms keyboard/kms plymouth keyboard/' /etc/mkinitcpio.conf
mkinitcpio -P
sed -i 's/GRUB_CMDLINE_LINUX_DEFAULT="/GRUB_CMDLINE_LINUX_DEFAULT="splash /' /etc/default/grub
grub-mkconfig -o /boot/grub/grub.cfg
echo "Installing plymouth theme"
yay -S plymouth-theme-deus-ex-git
plymouth-set-default-theme -R deus_ex
echo "Pulling home git config"
$CONFIG='/usr/bin/git --git-dir=/home/drew/.cfg/ --work-tree=/home/drew'
git config --global init.defaultBranch main
mkdir ~/.cfg
$CONFIG init
$CONFIG remote add origin https://gitlab.com/dgalbraith33/dotfiles.git
$CONFIG pull origin main
$CONFIG submodule update --init
echo "*" > ~/.gitignore
echo "Enabling SDDM"
systemctl enable sddm
yay -S sddm-sugar-dark
mkdir /etc/sddm.conf.d
echo "[Theme]\nCurrent=sugar-dark" | tee /etc/sddm.conf.d/theme.conf
echo "[General]\nDisplayServer=Wayland" | tee /etc/sddm.conf.d/theme.conf
sed -i 's/ForceHideCompletePassword=false/ForceHideCompletePassword=true/' /usr/share/sddm/themes/sugar-dark/theme.conf
echo "Giving Sway hardware access."
usermod -aG seat drew
systemctl enable seatd.service
pacman -S pulseaudio pavucontrol network-manager-applet
echo "3. Add splash to kernel parameters in /etc/default/grub and run grub-mkconfig -o /boot/grub/grub.cfg"