1 # Copyright © 2016-2019 Reborn OS
3 # This file is part of Reborn OS.
5 # Reborn OS is free software; you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation; either version 3 of the License, or
8 # (at your option) any later version.
10 # Reborn OS is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
15 # The following additional terms are in effect as per Section 7 of the license:
17 # The preservation of all legal notices and author attributions in
18 # the material or in the Appropriate Legal Notices displayed
19 # by works containing it is required.
21 # You should have received a copy of the GNU General Public License
22 # along with Reborn OS; If not, see <http://www.gnu.org/licenses/>.
25 pacman -S openbox-theme --force --noconfirm
26 wget --spider www.google.com
28 echo "$(ls /home/)" >/home.txt
29 sed -i '/timeshift/d' /home.txt
30 sed -i '/root/d' /home.txt
31 if [[ $(wc -l /home.txt | awk '{print $1}') -ge 2 ]]; then
32 sed -i '/reborn/d' /home.txt
34 echo "Continuing on..."
36 mkdir /home/$(cat /home.txt)/.config/gtk-3.0
37 cp -f /tmp/settings.ini /home/$(cat /home.txt)/.config/gtk-3.0/
38 cp -f /tmp/rc.xml /home/$(cat /home.txt)/.config/openbox/
39 mkdir /home/$(cat /home.txt)/.config/conky
40 cp -f /tmp/conky.conf /home/$(cat /home.txt)/.config/conky/
42 chmod ugo=rw /home/$(cat /home.txt)/.config/conky/conky.conf
43 chmod ugo=rw /home/$(cat /home.txt)/.config/openbox/rc.xml
44 chmod ugo=rw /home/$(cat /home.txt)/.config/gtk-3.0/settings.ini
45 git clone https://github.com/addy-dclxvi/openbox-theme-collections.git /temp
47 mv -f /temp/* /usr/share/themes/
49 git clone https://github.com/addy-dclxvi/gtk-theme-collections.git /temp2
51 mv -f /temp2/* /usr/share/themes/
53 mv -f /tmp/settings.ini /usr/share/gtk-3.0/
54 mv -f /tmp/rc.xml /etc/xdg/openbox/
55 rm -f /etc/xdg/autostart/obmenu-gen.desktop
56 sudo -u $(cat /home.txt) obmenu-generator -p -i
57 sudo -u $(cat /home.txt) openbox --reconfigure
58 yad --title "Conky" --height=100 --width=300 --center --text="Your Openbox setup has now been fully configured! To experience the improvements fully, please log out and then back in. Thank you, and enjoy!" --text-align=center
59 sudo -u root rm -f /home.txt
60 else exec /usr/bin/openbox-config.sh