-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgrimm-eos.sh
More file actions
92 lines (70 loc) · 3.02 KB
/
grimm-eos.sh
File metadata and controls
92 lines (70 loc) · 3.02 KB
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
##################################################################################################################
installed_dir=$(dirname $(readlink -f $(basename `pwd`)))
##################################################################################################################
# when on EOS
###############################################################################
#
# DECLARATION OF FUNCTIONS
#
###############################################################################
installed_dir=$(dirname $(readlink -f $(basename `pwd`)))
###############################################################################
# when on Eos
if grep -q "EndeavourOS" /etc/os-release; then
echo
tput setaf 2
echo "################################################################"
echo "############### We are on an EOS iso"
echo "################################################################"
echo
tput sgr0
sudo pacman -S --noconfirm --needed edu-skel-git
sudo pacman -S --noconfirm --needed edu-xfce-git
sudo pacman -S --noconfirm --needed edu-system-git
if [ -f /etc/environment ]; then
echo "QT_QPA_PLATFORMTHEME=qt5ct" | sudo tee /etc/environment
echo "QT_STYLE_OVERRIDE=kvantum" | sudo tee -a /etc/environment
echo "EDITOR=nano" | sudo tee -a /etc/environment
echo "BROWSER=firefox" | sudo tee -a /etc/environment
fi
echo
echo "################################################################"
echo "Getting latest /etc/nsswitch.conf from ArcoLinux"
echo "################################################################"
echo
sudo cp /etc/nsswitch.conf /etc/nsswitch.conf.bak
sudo wget https://raw.githubusercontent.com/arcolinux/arcolinuxl-iso/master/archiso/airootfs/etc/nsswitch.conf -O $workdir/etc/nsswitch.conf
if [ -f /usr/share/xsessions/xfce.desktop ]; then
echo
tput setaf 2
echo "################################################################"
echo "################### We are on Xfce4"
echo "################################################################"
tput sgr0
echo
cp -arf /etc/skel/. ~
echo
echo "Changing the whiskermenu"
echo
cp $installed_dir/settings/eos/whiskermenu-7.rc ~/.config/xfce4/panel/whiskermenu-7.rc
sudo cp $installed_dir/settings/eos/whiskermenu-7.rc /etc/skel/.config/xfce4/panel/whiskermenu-7.rc
echo
echo "Changing the icons and theme"
echo
FIND="Arc-Dark"
REPLACE="Arc-Dawn-Dark"
sed -i "s/$FIND/$REPLACE/g" ~/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
sudo sed -i "s/$FIND/$REPLACE/g" /etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
FIND="Sardi-Arc"
REPLACE="arcolinux-candy-beauty"
sed -i "s/$FIND/$REPLACE/g" ~/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
sudo sed -i "s/$FIND/$REPLACE/g" /etc/skel/.config/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
fi
echo
tput setaf 6
echo "################################################################"
echo "################### Done"
echo "################################################################"
tput sgr0
echo
fi