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
|
2023-11-17 19:51:48 -08:00
|
|
|
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
|
|
|
|
|
2023-11-19 01:11:14 -08:00
|
|
|
systemctl enable bluetooth
|
2023-11-17 18:30:06 -08:00
|
|
|
|