mirror of
https://github.com/10h30/endeavouros-i3wm-setup.git
synced 2026-07-14 04:05:54 +09:00
21 lines
662 B
Bash
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
|