forked from EndeavourOS-Community-Editions/bspwm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.sh
23 lines (21 loc) · 805 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
#!/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-Community-Editions/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/
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