forked from EndeavourOS-Community-Editions/bspwm
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
27 lines (23 loc) · 817 Bytes
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/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/rotkonetworks/narcOS-bspwm.git
cd bspwm
mkdir -p /home/$NEW_USER/.local/share/fonts
cp IosevkaTermNerdFontComplete.ttf /home/$NEW_USER/.local/share/fonts/
cp -R .config /home/$NEW_USER/
cp .gtkrc-2.0 /home/$NEW_USER/
# add lazyvim starter
./nvim/setup.sh $NEW_USER
# correct permissions
chown -R $NEW_USER:$NEW_USER /home/$NEW_USER/.local
chown -R $NEW_USER:$NEW_USER /home/$NEW_USER/.config
chown $NEW_USER:$NEW_USER /home/$NEW_USER/.gtkrc-2.0
chmod -R +x /home/$NEW_USER/.config/bspwm/
chmod -R +x /home/$NEW_USER/.config/sxhkd/
chmod -R +x /home/$NEW_USER/.config/polybar/scripts
cd ..
rm -rf bspwm