arch-install/install_desktop.sh

27 lines
588 B
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 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
2023-11-17 18:30:06 -08:00
echo "Giving Sway hardware access."
usermod -aG seat drew
systemctl enable seatd.service
systemctl enable bluetooth
2023-11-17 18:30:06 -08:00