add step to copy dotfiles because bsmpwn wont start without it; add populate bspwm.desktop
This commit is contained in:
parent
b0810a9e00
commit
b66a03d712
|
@ -210,6 +210,7 @@ genfstab -U /mnt >> /mnt/etc/fstab
|
|||
# chroot setup
|
||||
mkdir -p /mnt/chroot-scripts
|
||||
cp scripts/chroot-setup.sh /mnt/chroot-scripts/
|
||||
cp scripts/cp-dotfiles.sh /mnt/chroot-scripts/
|
||||
arch-chroot /mnt bash /chroot-scripts/chroot-setup.sh "$CPU_VENDOR_NAME" "$ROOT_PARTITION"
|
||||
rm -rf /mnt/chroot-scripts
|
||||
if [[ $? -ne 0 ]]; then
|
||||
|
|
|
@ -83,6 +83,22 @@ echo "permit persist keepenv pratham" | tee -a /etc/doas.conf
|
|||
# setup root user's cron jobs
|
||||
echo "${ROOT_CRONTAB}" | crontab -
|
||||
|
||||
# copy dotfiles
|
||||
sudo -u pratham /chroot-scripts/cp-dotfiles.sh
|
||||
|
||||
|
||||
################################################################################
|
||||
# BSPWM SETUP
|
||||
################################################################################
|
||||
|
||||
cat <<EOF > /usr/share/xsessions/bspwm.desktop
|
||||
[Desktop Entry]
|
||||
Name=bspwm
|
||||
Comment=Binary space partitioning window manager
|
||||
Exec=/home/pratham/.xinitrc
|
||||
Type=Application
|
||||
EOF
|
||||
|
||||
|
||||
################################################################################
|
||||
# NVIDIA SETUP
|
||||
|
|
|
@ -0,0 +1,25 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
echo "################################################################################"
|
||||
echo " RUNNING DOTFILES SCRIPT "
|
||||
echo "################################################################################"
|
||||
|
||||
pushd /home/pratham
|
||||
mkdir my-git-repos
|
||||
pushd my-git-repos
|
||||
|
||||
git clone --depth 1 https://git.thefossguy.com/thefossguy/dotfiles.git
|
||||
|
||||
pushd dotfiles
|
||||
tput -x clear
|
||||
rsync \
|
||||
--verbose --recursive --size-only --human-readable \
|
||||
--progress --stats \
|
||||
--itemize-changes --checksum --perms \
|
||||
--exclude=".git" --exclude=".gitignore" --exclude="README.md" --exclude="run_me.sh" \
|
||||
../dotfiles/ ~/
|
||||
popd
|
||||
rm -rf dotfiles
|
||||
|
||||
popd
|
||||
popd
|
Loading…
Reference in New Issue