39 lines
938 B
Bash
Executable File
39 lines
938 B
Bash
Executable File
#! /bin/bash
|
|
set -e
|
|
|
|
if [[ $EUID -eq 0 ]]; then
|
|
echo "Cannot run as root."
|
|
exit
|
|
fi
|
|
|
|
echo "Installing yay"
|
|
mkdir -p opt
|
|
pushd opt
|
|
if [ ! -d yay ]; then
|
|
git clone https://aur.archlinux.org/yay.git
|
|
pushd yay
|
|
makepkg -si
|
|
popd
|
|
fi
|
|
popd
|
|
|
|
echo "Installing plymouth theme"
|
|
yay --noconfirm --needed -S plymouth-theme-deus-ex-git
|
|
sudo cp plymouthd.conf /etc/plymouth/plymouthd.conf
|
|
sudo mkinitcpio -P
|
|
|
|
echo "Installing SDDM theme"
|
|
yay --noconfirm --needed -S sddm-sugar-dark
|
|
|
|
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 -p ~/.cfg
|
|
$CONFIG init
|
|
$CONFIG remote add origin https://gitlab.com/dgalbraith33/dotfiles.git
|
|
rm ~/.gitconfig
|
|
$CONFIG pull origin main
|
|
$CONFIG submodule update --init
|
|
|
|
sudo sed -i 's/ForceHideCompletePassword=false/ForceHideCompletePassword=true/' /usr/share/sddm/themes/sugar-dark/theme.conf
|