1
0
Fork 0

add step to copy dotfiles because bsmpwn wont start without it; add populate bspwm.desktop

This commit is contained in:
Pratham Patel 2023-01-10 08:50:53 +05:30
parent b0810a9e00
commit b66a03d712
3 changed files with 42 additions and 0 deletions

View File

@ -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

View File

@ -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

25
scripts/cp-dotfiles.sh Executable file
View File

@ -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