-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_eggshell.sh
More file actions
120 lines (106 loc) · 4.13 KB
/
Copy pathinstall_eggshell.sh
File metadata and controls
120 lines (106 loc) · 4.13 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
#!/bin/bash
# EGGSHELL Automated Installer for Multiple Linux Distributions
# This script automates the setup of the EGGSHELL desktop environment.
# Supports: openSUSE Leap 15.6/16.0, openSUSE Tumbleweed, Ubuntu 22.04/24.04
echo "--- Starting EGGSHELL Installation ---"
# Load distribution detection
if [ -f "./detect_distro.sh" ]; then
source ./detect_distro.sh
else
echo "Error: detect_distro.sh not found. Please ensure it's in the same directory."
exit 1
fi
# Step 1: Update system and install necessary tools
echo "[INFO] Updating system and installing required software..."
sudo $PKG_UPDATE
case "$DISTRO" in
"opensuse"* | "suse"*)
sudo $PKG_INSTALL git plasma5-desktop plasma5-workspace kde-cli-tools5
DESKTOP_ENV="kde"
;;
"ubuntu" | "debian")
sudo $PKG_INSTALL git kde-plasma-desktop plasma-workspace kde-cli-tools
# Also support GNOME on Ubuntu
if command -v gnome-shell &> /dev/null; then
DESKTOP_ENV="gnome"
else
DESKTOP_ENV="kde"
fi
;;
*)
sudo $PKG_INSTALL git
DESKTOP_ENV="unknown"
;;
esac
# Step 2: Create directories for custom themes
echo "[INFO] Creating theme directories..."
mkdir -p ~/.local/share/plasma/desktoptheme/
mkdir -p ~/.local/share/icons/
mkdir -p ~/.local/share/aurorae/themes/
# Step 3: Download Windows 11-like themes and icons
# We are using publicly available themes that mimic the Windows 11 style.
echo "[INFO] Downloading visual themes and icons..."
git clone https://github.com/vinceliuice/WhiteSur-gtk-theme.git /tmp/whitesur
git clone https://github.com/vinceliuice/WhiteSur-icon-theme.git /tmp/whitesur-icons
# Step 4: Install the themes
echo "[INFO] Installing visual themes..."
/tmp/whitesur/install.sh -l -c Dark -N 'EGGSHELL'
/tmp/whitesur-icons/install.sh -a
# Step 5: Apply the basic theme settings using desktop environment tools
echo "[INFO] Applying EGGSHELL theme for $DESKTOP_ENV..."
if [ "$DESKTOP_ENV" = "kde" ]; then
# KDE Plasma theme application
if command -v lookandfeeltool &> /dev/null; then
lookandfeeltool -a com.vinceliuice.EGGSHELL.Dark
else
echo "Warning: lookandfeeltool not available, skipping theme application"
fi
elif [ "$DESKTOP_ENV" = "gnome" ]; then
# GNOME theme application
if command -v gsettings &> /dev/null; then
gsettings set org.gnome.desktop.interface gtk-theme 'WhiteSur-Dark'
gsettings set org.gnome.desktop.interface icon-theme 'WhiteSur-dark'
fi
else
echo "Warning: Unknown desktop environment, manual theme configuration required"
fi
# Step 6: Create the 'Terminology Translator' shortcuts
# These shortcuts launch common apps but use Windows-familiar names.
echo "[INFO] Creating user-friendly shortcuts..."
cat > ~/Desktop/App\ Store.desktop << EOL
[Desktop Entry]
Name=App Store
Exec=plasma-discover %u
Icon=system-software-install
Type=Application
Comment=Find and install new applications.
EOL
cat > ~/Desktop/My\ Documents.desktop << EOL
[Desktop Entry]
Name=My Documents
Exec=dolphin ~
Icon=user-home
Type=Application
Comment=Browse your personal files and folders.
EOL
# Step 7: Create the Elemental Genius Trial Launcher
# This shortcut launches the web-based platform as specified.
echo "[INFO] Creating Elemental Genius launcher..."
cat > ~/Desktop/Elemental\ Genius\ Trial.desktop << EOL
[Desktop Entry]
Name=Start Elemental Genius 30-Day Trial
Exec=xdg-open https://elementalgenius.example.com/trial
Icon=applications-education
Type=Application
Comment=Begin your journey with the Elemental Genius learning platform.
EOL
# Make all new shortcuts executable
chmod +x ~/Desktop/*.desktop
echo "--- EGGSHELL Automated Installation Complete! ---"
echo "System: $PRETTY_NAME"
echo "Desktop Environment: $DESKTOP_ENV"
echo "Kernel: $KERNEL_VERSION"
echo ""
echo "Please log out and log back in for all changes to take effect."
echo "After logging back in, proceed with Phase 3 for manual adjustments."
echo "For Ubuntu users: You may need to install additional KDE components if using GNOME."