forked from grassmunk/Chicago95
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
254 lines (196 loc) 路 7.97 KB
/
Copy pathinstall.sh
File metadata and controls
254 lines (196 loc) 路 7.97 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
#!/bin/bash
# Function to create a directory if it does not exist:
create_dir_if_not_exists() {
if [ ! -d "$1" ]; then
mkdir -p "$1"
fi
}
# Create necessary directories
create_dir_if_not_exists "$HOME/.themes"
create_dir_if_not_exists "/usr/share/themes"
create_dir_if_not_exists "$HOME/.icons"
create_dir_if_not_exists "/usr/share/icons"
create_dir_if_not_exists "$HOME/.local/share/xfce4-panel-profiles"
create_dir_if_not_exists "$HOME/.config/menus/menu-backup"
# Copy themes and icons
cp -r Theme/MENT2K "$HOME/.themes/"
sudo cp -r Theme/MENT2K "/usr/share/themes/"
cp -r Icons/Idk2k "$HOME/.icons/"
sudo cp -r Icons/Idk2k "/usr/share/icons/"
# Update lightdm-gtk-greeter.css
sudo cp -v "Lightdm/lightdm-gtk-greeter.css" "/usr/share/themes/MENT2K/gtk-3.0/apps/lightdm-gtk-greeter.css"
# Install necessary packages
echo "\nInstalling dependencies..."
sleep 0.4
sudo apt update
sudo apt install -y lxappearance marco mate-control-center mate-tweak gtk2-engines-pixbuf xfce4-panel-profiles picom wget unzip
# Copy panel profiles and menu backups
sudo mkdir ~/.local/share/xfce4-panel-profiles/
cp -r Misc/Panel-profiles/MENT2K.tar.bz2 ~/.local/share/xfce4-panel-profiles/MENT2K.tar.bz2
cp -r "$HOME/.config/xfce4/xfconf/xfce-perchannel-xml/xfce4-panel.xml" "$HOME/.config/menus/menu-backup/xfce4-panel.xml.bak"
# Copy menu shortcut directories
sudo mkdir ~/.local/share/desktop-directories
cp -v Misc/xfce-games.directory ~/.local/share/desktop-directories/xfce-games.directory
cp -v Misc/xfce-office.directory ~/.local/share/desktop-directories/xfce-office.directory
cp -v Misc/xfce-settings.directory ~/.local/share/desktop-directories/xfce-settings.directory
cp -v Misc/xfce-accessories.directory ~/.local/share/desktop-directories/xfce-accessories.directory
# Load panel profiles and set themes
xfce4-panel-profiles load ~/.local/share/xfce4-panel-profiles/MENT2K.tar.bz2
sleep 0.8
gsettings set org.gnome.desktop.interface gtk-theme 'MENT2K'
sleep 0.8
gsettings set org.gnome.desktop.interface icon-theme 'Idk2k'
gsettings set org.mate.interface gtk-theme 'MENT2K'
gsettings set org.mate.interface icon-theme 'Idk2k'
xfconf-query --channel xsettings --property /Gtk/ThemeName --set 'MENT2K'
xfconf-query --channel xsettings --property /Net/ThemeName --set 'MENT2K'
xfconf-query --channel xsettings --property /Net/IconThemeName --set 'Idk2k'
xfconf-query --channel xsettings --property /Gtk/IconThemeName --set 'Idk2k'
# Change cursor theme
echo "Changing cursor theme..."
create_dir_if_not_exists ~/.icons/default
cp "Misc/index.theme" ~/.icons/default/
sudo cp -r "Cursors/Chicago95 Standard Cursors" "/usr/share/icons"
ln -s "/usr/share/icons/Chicago95 Standard Cursors/cursors" ~/.icons/default/cursors
# Backup and replace menus
create_dir_if_not_exists "$HOME/.config/menus/menu-backup"
mv "$HOME/.config/menus/applications-merged" "$HOME/.config/menus/menu-backup/"
mv "$HOME/.config/menus/xfce-applications.menu" "$HOME/.config/menus/menu-backup/"
sudo cp -r Misc/menus/* "$HOME/.config/menus/"
# Copy desktop shortcuts
cp -r Misc/desktop-shortcuts/ "$HOME/Desktop"
# Make marco the default window manager
update-alternatives --set x-session-manager /usr/bin/marco
# Apply Redmond97 theme
echo "Process: Marco theme"
git clone https://github.com/matthewmx86/Redmond97.git || { echo "Failed to clone the Redmond97 repository."; exit 1; }
sudo cp -r "Redmond97/Theme/no-csd/Redmond97 Millennium" ~/.themes || { echo "Failed to move the theme."; exit 1; }
rm -rf Redmond97 || { echo "Failed to delete the cloned Redmond97 directory."; exit 1; }
# Configure picom and autostart
cp -r Misc/picom.conf ~/.config/
sudo cp -r Misc/.startup/.startup-marco.sh /etc/
mkdir -p ~/.config/autostart
cat > ~/.config/autostart/startup-marco.desktop <<'EOF'
[Desktop Entry]
Type=Application
Name=startup-marco
Exec=/etc/.startup-marco.sh
X-GNOME-Autostart-enabled=true
NoDisplay=false
EOF
sudo chmod +x "/etc/.startup-marco.sh"
sudo chmod +x "~/.config/autostart/startup-marco.desktop"
gsettings set org.mate.Marco.general theme 'Redmond97 Millennium'
sleep 0.2
gsettings set org.mate.interface font-name 'Tahoma 8'
gsettings set org.gnome.desktop.wm.preferences titlebar-font 'Tahoma Bold 8'
gsettings set org.mate.Marco.general titlebar-font 'Tahoma Bold 8'
# Change the xfdesktop wallpaper to just the color "#3D6FA2"
cp -r Misc/Background.png ~/.themes/
xfconf-query --channel xfce4-desktop --list | grep last-image | xargs xfconf-query -c xfce4-desktop -s ~/.themes/Background.png -p
xfconf-query -create xfce4-desktop -p /backdrop/screen0/monitorHDMI-1/workspace0/image-style -s 2
xfconf-query -create xfce4-desktop -p /backdrop/screen0/monitoreDP-1/workspace0/image-style -s 2
xfconf-query -create xfce4-desktop -p /backdrop/screen0/monitor0/workspace0/image-style -s 2
xfconf-query -c xfce4-desktop -p /desktop-icons/icon-size -t int -s 32 --create
echo '(gtk_accel_path "<Actions>/ThunarWindow/view-location-selector-entry" "true")' >> ~/.config/Thunar/accels
FONT_ZIP_FILE="Tahoma-4styles-Font.zip"
EXTRACTED_FOLDER="Tahoma-4styles-Font"
PROJECT_FOLDER="$(pwd)"
FONT_FILES="TAHOMA_0.TTF" "TAHOMAB0.TTF" "TAHOMABD.TTF" "Tahoma Regular font.ttf"
SYSTEM_FONT_DIR="/usr/local/share/fonts/tahoma"
debian_lightdm() {
sleep 3
sudo cp -v "Misc/debian/lightdm-gtk-greeter.css" "/usr/share/themes/MENT2K/gtk-3.0/apps/lightdm-gtk-greeter.css"
cp -v "Misc/debian/lightdm-gtk-greeter.css" "~/.themes/MENT2K/gtk-3.0/apps/lightdm-gtk-greeter.css"
}
download_and_extract_font() {
echo "Downloading $FONT_ZIP_FILE..."
wget "https://www.dafontfree.co/wp-content/uploads/download-manager-files/Tahoma-4styles-Font.zip"
sleep 2
unzip -o "$FONT_ZIP_FILE" -d "$PROJECT_FOLDER/$EXTRACTED_FOLDER"
sleep 2
}
install_fonts() {
echo "Installing font files system-wide..."
sudo cp -r "$EXTRACTED_FOLDER/$FONT_FILES" /usr/share/fonts/truetype/
sudo fc-cache -fv
}
# Function to set Tahoma as the default font with specified settings
set_default_font() {
echo "Setting Tahoma as the default font."
# Set default font for Xfce
xfconf-query --channel xsettings --property /Gtk/FontName --set "Tahoma 8"
xfconf-query -c xsettings -p /Xft/Antialias -s 0
xfconf-query -c xsettings -p /Xft/Hinting -s 1
xfconf-query -c xsettings -p /Xft/HintStyle -s hintfull
xfconf-query -c xsettings -p /Xft/RGBA -s vgbr
}
restart() {
sudo reboot
}
manual_steps() {
xdg-open REMAINING_STEPS.md
}
# Main script execution
clear
printf ''
printf 'Do you want to download and install the Tahoma font from https://www.dafontfree.co/download/tahoma/? (Y/n): '
read -r confirm
case "$confirm" in
y|Y)
download_and_extract_font
install_fonts
set_default_font
echo "Installed font."
;;
*)
echo "Aborted."
;;
esac
if grep -qi '^ID=debian' /etc/os-release; then
echo "Debian detected. Installing Debian components..."
debian_lightdm
fi
sudo mv -- /etc/lightdm/lightdm-gtk-greeter.conf /etc/lightdm/lightdm-gtk-greeter.conf.bak
sudo cp -r Lightdm/lightdm-gtk-greeter.conf /etc/lightdm/
# Whisker menu icon replacement:
sudo cp -r Misc/windowsstart2.png /etc/
xfconf-query -c xfce4-panel -p /plugins/plugin-5/button-title --create -t string -s "Start"
xfconf-query -c xfce4-panel -p /plugins/plugin-5/button-icon --create -t string -s "/etc/windowsstart2.png"
xfce4-panel -r
# Set picom as compositor without window shadows
marco --replace --no-composite &
sleep 0.8
pkill picom
picom --config ~/.config/picom.conf &
echo "Installation and configuration complete."
sleep 1.5
clear
printf '\n'
printf '\nSome manual steps remain (including optional).\nWould you like to open the instructions for the remaining steps? (Y/n) '
read -r confirm
case "$confirm" in
y|Y)
echo "opening remaining steps..."
manual_steps
;;
*)
;;
esac
sleep 1
clear
sleep 1
clear
printf '\n'
printf 'A reboot is recommended to make everything look correctly. Do you want to reboot now? (Y/n) '
read -r confirm
case "$confirm" in
y|Y)
echo "rebooting in a few seconds..."
restart
;;
*)
echo "Not rebooting."
exit
;;
esac