38 lines
1011 B
Bash
Executable File
38 lines
1011 B
Bash
Executable File
# /bin/bash
|
|
set -e
|
|
|
|
if [[ $EUID -ne 0 ]]; then
|
|
echo "Must run as root."
|
|
exit
|
|
fi
|
|
|
|
echo "Installing packages."
|
|
# Base Packages.
|
|
# Go is a dependency of yay
|
|
pacman --noconfirm -S which base-devel go
|
|
|
|
# Display Elements.
|
|
pacman --noconfirm -S plymouth sddm wayland sway swaybg swaylock swayidle wofi waybar
|
|
|
|
# Theming.
|
|
pacman --noconfirm -S ttf-liberation sddm kitty zsh adobe-source-code-pro-fonts ttf-sourcecodepro-nerd ttf-dejavu arc-gtk-theme papirus-icon-theme
|
|
|
|
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 "Enabling SDDM"
|
|
systemctl enable sddm
|
|
mkdir /etc/sddm.conf.d
|
|
cp sddm.conf /etc/sddm.conf.d/sddm.conf
|
|
|
|
echo "Giving Sway hardware access."
|
|
usermod -aG seat drew
|
|
systemctl enable seatd.service
|
|
|
|
pacman --noconfirm -S pulseaudio pavucontrol network-manager-applet
|
|
|