-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path04-customize-desktop.sh
More file actions
executable file
·68 lines (55 loc) · 1.57 KB
/
04-customize-desktop.sh
File metadata and controls
executable file
·68 lines (55 loc) · 1.57 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
#!/bin/bash
set -e
export DEBIAN_FRONTEND=noninteractive
echo "--> CUSTOMIZING DESKTOP (Theme, Transparency, Cursor)..."
# Clean Bloat
apt-get purge -y kmahjongg kmines kpat ksnake kmail kontact akregator || true
apt-get autoremove -y
echo "--> Generating Configs..."
CONFIG_TMP="/tmp/luminos-configs"
mkdir -p "$CONFIG_TMP/.config"
# 1. Dark Theme
cat > "$CONFIG_TMP/.config/kdeglobals" << "EOF"
[General]
ColorScheme=BreezeDark
Name=BreezeDark
[Icons]
Theme=Papirus-Dark
EOF
# 2. Modern Cursor (Nécessite script 08)
cat > "$CONFIG_TMP/.config/kcminputrc" << "EOF"
[Mouse]
cursorTheme=DMZ-White
cursorSize=24
EOF
# 3. Wallpaper & Transparency
cat > "$CONFIG_TMP/.config/plasma-org.kde.plasma.desktop-appletsrc" << "EOF"
[Containments][1]
wallpaperplugin=org.kde.image
[Containments][1][Wallpaper][org.kde.image][General]
Image=file:///usr/share/wallpapers/luminos/luminos-wallpaper-default.png
FillMode=2
[Containments][1][General]
panelOpacity=1
EOF
# 4. SDDM Theme
mkdir -p /etc/sddm.conf.d/
cat > /etc/sddm.conf.d/luminos-theme.conf << "EOF"
[Theme]
Current=breeze
[General]
Background=/usr/share/wallpapers/luminos/luminos-sddm-background.png
EOF
# --- APPLY TO USERS ---
cp -r "$CONFIG_TMP/.config" /etc/skel/
if id "liveuser" &>/dev/null; then
echo "--> Injecting into liveuser..."
HOMEDIR="/home/liveuser"
mkdir -p "$HOMEDIR/.config"
cp -r "$CONFIG_TMP/.config/." "$HOMEDIR/.config/"
chown -R liveuser:liveuser "$HOMEDIR"
fi
rm -rf "$CONFIG_TMP"
echo "--> Desktop Customization Complete."
rm -rf "$CONFIG_TMP"
echo "SUCCESS: Desktop environment ready and applied."