Files
endeavouros-i3wm-setup/setup.sh
T
2021-08-24 14:28:22 +02:00

21 lines
662 B
Bash

#!/bin/bash
if [ -f /tmp/new_username.txt ]
then
NEW_USER=$(cat /tmp/new_username.txt)
else
NEW_USER=$(cat /tmp/$chroot_path/etc/passwd | grep "/home" |cut -d: -f1 |head -1)
fi
git clone https://github.com/endeavouros-team/endeavouros-i3wm-setup.git
cd endeavouros-i3wm-setup
cp -R .config /home/$NEW_USER/
chmod -R +x /home/$NEW_USER/.config/i3/scripts
cp .gtkrc-2.0 /home/$NEW_USER/
cp .nanorc /home/$NEW_USER/
chown -R $NEW_USER:$NEW_USER /home/$NEW_USER/.config
chown $NEW_USER:$NEW_USER /home/$NEW_USER/.gtkrc-2.0
chown $NEW_USER:$NEW_USER /home/$NEW_USER/.nanorc
cd ..
rm -rf endeavouros-i3wm-setup