Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Desktop Entry]
Type=Application
Name=ArchimedeOS Wallpaper Setup
Name[fr]=Configuration fond d'écran ArchimedeOS
Comment=Configure ArchimedeOS default wallpaper
Comment[fr]=Configure le fond d'écran par défaut d'ArchimedeOS
Exec=/usr/local/bin/archimedeos-setup-wallpaper
Icon=preferences-desktop-wallpaper
StartupNotify=false
NoDisplay=true
X-KDE-autostart-after=kded5
OnlyShowIn=KDE;
43 changes: 42 additions & 1 deletion iso/airootfs/etc/skel/.config/kdeglobals
Original file line number Diff line number Diff line change
@@ -1,3 +1,44 @@
[General]
BrowserApplication=firefox.desktop
ColorScheme=Breeze
Name=liveuser
Name=Breeze
shadeSortColumn=true

[Icons]
Theme=breeze

[KDE]
LookAndFeelPackage=org.kde.breeze.desktop
SingleClick=false
widgetStyle=Breeze

[KFileDialog Settings]
Allow Expansion=false
Automatically select filename extension=true
Breadcrumb Navigation=true
Decoration position=2
LocationCombo Completionmode=5
PathCombo Completionmode=5
Show Bookmarks=false
Show Full Path=false
Show Inline Previews=true
Show Preview=false
Show Speedbar=true
Show hidden files=false
Sort by=Name
Sort directories first=true
Sort hidden files last=false
Sort reversed=false
Speedbar Width=138
View Style=Detail

[PreviewSettings]
MaximumRemoteSize=0

[WM]
activeBackground=71,80,87
activeBlend=255,255,255
activeForeground=255,255,255
inactiveBackground=239,240,241
inactiveBlend=75,71,67
inactiveForeground=189,195,199
36 changes: 36 additions & 0 deletions iso/airootfs/etc/skel/.config/kwinrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
[Desktops]
Id_1=8b0b8c4b-4e61-4c04-a7f1-4d67e5f96e3c
Name_1=Bureau 1
Number=1
Rows=1

[Effect-kwin4_effect_translucency]
Decorations=85
Dialogs=85
DropdownMenus=85
Menus=85
PopupMenus=85
TornOffMenus=85

[NightColor]
Active=true
LatitudeAuto=48.8566
LongitudeAuto=2.3522

[Plugins]
kwin4_effect_translucencyEnabled=true
slideEnabled=true

[Tiling]
padding=4

[Tiling][213ef4a8-97cf-5452-903c-0bcc8e48b76d]
tiles={"layoutDirection":"horizontal","tiles":[{"width":0.25},{"width":0.5},{"width":0.25}]}

[Windows]
DelayFocusInterval=300
FocusPolicy=ClickToFocus
FocusStealingPreventionLevel=1
GeometryTip=false
RollOverDesktops=true
SeparateScreenFocus=false
Original file line number Diff line number Diff line change
@@ -1,9 +1,81 @@
[ActionPlugins][0]
RightButton;NoModifier=org.kde.contextmenu

[ActionPlugins][1]
MidButton;NoModifier=org.kde.paste

[Containments][1]
activityId=
formfactor=0
formFactor=0
immutability=1
lastScreen=0
plugin=org.kde.desktopcontainment
location=0
plugin=org.kde.plasma.folder
wallpaperplugin=org.kde.image

[Containments][1][ConfigDialog]
DialogHeight=540
DialogWidth=720

[Containments][1][Configuration]
PreloadWeight=0

[Containments][1][General]
ToolBoxButtonState=topcenter
ToolBoxButtonX=537

[Containments][1][Wallpaper][org.kde.image][General]
Image=file://$HOME/.local/share/wallpapers/MonFondEcran/contents/images/archimedeoswallpaper.jpg
Image=/usr/share/backgrounds/archimede/archimede-wallpaper.png
PreviewImage=/usr/share/backgrounds/archimede/archimede-wallpaper.png
SlidePaths=/usr/share/backgrounds/archimede/

[Containments][2]
activityId=
formFactor=2
immutability=1
lastScreen=0
location=3
plugin=org.kde.panel
wallpaperplugin=org.kde.image

[Containments][2][Applets][3]
immutability=1
plugin=org.kde.plasma.kickoff

[Containments][2][Applets][4]
immutability=1
plugin=org.kde.plasma.pager

[Containments][2][Applets][5]
immutability=1
plugin=org.kde.plasma.icontasks

[Containments][2][Applets][6]
immutability=1
plugin=org.kde.plasma.marginsseparator

[Containments][2][Applets][7]
immutability=1
plugin=org.kde.plasma.systemtray

[Containments][2][Applets][8]
immutability=1
plugin=org.kde.plasma.digitalclock

[Containments][2][Applets][9]
immutability=1
plugin=org.kde.plasma.showdesktop

[Containments][2][ConfigDialog]
DialogHeight=84
DialogWidth=1920

[Containments][2][Configuration]
PreloadWeight=26

[Containments][2][General]
AppletOrder=3;4;5;6;7;8;9

[ScreenMapping]
itemsOnDisabledScreens=
screenMapping=
14 changes: 14 additions & 0 deletions iso/airootfs/etc/skel/.config/plasmarc
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[Wallpapers]
usersWallpapers=/usr/share/backgrounds/archimede/archimede-wallpaper.png

[Theme]
name=default

[PlasmaViews][Panel 2]
floating=0

[PlasmaViews][Panel 2][Defaults]
thickness=44

[Updates]
performed=/usr/share/kservices5/,/usr/share/kservices5/ServiceMenus/,/usr/share/kservices5/kded/
15 changes: 15 additions & 0 deletions iso/airootfs/etc/systemd/system/archimedeos-wallpaper.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
[Unit]
Description=ArchimedeOS Wallpaper Configuration
After=display-manager.service
Wants=display-manager.service

[Service]
Type=oneshot
ExecStart=/usr/local/bin/archimedeos-setup-wallpaper
RemainAfterExit=yes
User=live
Environment=HOME=/home/live
Environment=DISPLAY=:0

[Install]
WantedBy=graphical.target
52 changes: 52 additions & 0 deletions iso/airootfs/usr/local/bin/archimedeos-post-install-wallpaper
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
#!/bin/bash

# Script de post-installation pour configurer le fond d'écran ArchimedeOS
# Peut être appelé depuis l'installateur ou manuellement

WALLPAPER_PATH="/usr/share/backgrounds/archimede/archimede-wallpaper.png"
TARGET_USER="${1:-live}"
TARGET_HOME="/home/$TARGET_USER"

echo "Configuration du fond d'écran ArchimedeOS pour l'utilisateur: $TARGET_USER"

# Créer les répertoires de configuration KDE s'ils n'existent pas
mkdir -p "$TARGET_HOME/.config/autostart"
mkdir -p "$TARGET_HOME/.local/share/plasma"

# Copier les fichiers de configuration
if [[ -f "/etc/skel/.config/plasma-org.kde.plasma.desktop-appletsrc" ]]; then
cp "/etc/skel/.config/plasma-org.kde.plasma.desktop-appletsrc" "$TARGET_HOME/.config/"
fi

if [[ -f "/etc/skel/.config/plasmarc" ]]; then
cp "/etc/skel/.config/plasmarc" "$TARGET_HOME/.config/"
fi

if [[ -f "/etc/skel/.config/kdeglobals" ]]; then
cp "/etc/skel/.config/kdeglobals" "$TARGET_HOME/.config/"
fi

if [[ -f "/etc/skel/.config/kwinrc" ]]; then
cp "/etc/skel/.config/kwinrc" "$TARGET_HOME/.config/"
fi

if [[ -f "/etc/skel/.config/autostart/archimedeos-wallpaper.desktop" ]]; then
cp "/etc/skel/.config/autostart/archimedeos-wallpaper.desktop" "$TARGET_HOME/.config/autostart/"
fi

# Ajuster les permissions
chown -R "$TARGET_USER:$TARGET_USER" "$TARGET_HOME/.config"

# Configurer le fond d'écran directement si possible
if [[ -f "$WALLPAPER_PATH" ]]; then
# Utiliser kwriteconfig5 si disponible
if command -v kwriteconfig5 &> /dev/null; then
sudo -u "$TARGET_USER" kwriteconfig5 --file "$TARGET_HOME/.config/plasma-org.kde.plasma.desktop-appletsrc" --group "Containments" --group "1" --group "Wallpaper" --group "org.kde.image" --group "General" --key "Image" "file://$WALLPAPER_PATH"
fi

echo "Fond d'écran configuré: $WALLPAPER_PATH"
else
echo "Attention: Le fichier de fond d'écran $WALLPAPER_PATH n'existe pas"
fi

echo "Configuration terminée pour l'utilisateur $TARGET_USER"
49 changes: 49 additions & 0 deletions iso/airootfs/usr/local/bin/archimedeos-setup-wallpaper
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
#!/bin/bash

# Script pour configurer automatiquement le fond d'écran ArchimedeOS
# Ce script sera exécuté lors du premier démarrage

WALLPAPER_PATH="/usr/share/backgrounds/archimede/archimede-wallpaper.png"
USER_HOME="$HOME"

# Attendre que KDE soit complètement chargé
sleep 5

# Vérifier si le fichier de fond d'écran existe
if [[ ! -f "$WALLPAPER_PATH" ]]; then
echo "Erreur: Le fond d'écran $WALLPAPER_PATH n'existe pas"
exit 1
fi

# Configurer le fond d'écran via DBus (méthode la plus fiable)
if command -v qdbus &> /dev/null; then
# Essayer avec qdbus (Qt5)
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript "
var allDesktops = desktops();
for (i=0;i<allDesktops.length;i++) {
d = allDesktops[i];
d.wallpaperPlugin = 'org.kde.image';
d.currentConfigGroup = Array('Wallpaper', 'org.kde.image', 'General');
d.writeConfig('Image', 'file://$WALLPAPER_PATH');
}
" 2>/dev/null
elif command -v qdbus-qt5 &> /dev/null; then
# Essayer avec qdbus-qt5
qdbus-qt5 org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript "
var allDesktops = desktops();
for (i=0;i<allDesktops.length;i++) {
d = allDesktops[i];
d.wallpaperPlugin = 'org.kde.image';
d.currentConfigGroup = Array('Wallpaper', 'org.kde.image', 'General');
d.writeConfig('Image', 'file://$WALLPAPER_PATH');
}
" 2>/dev/null
fi

# Alternative: utiliser kwriteconfig5 pour une configuration persistante
if command -v kwriteconfig5 &> /dev/null; then
kwriteconfig5 --file plasma-org.kde.plasma.desktop-appletsrc --group "Containments" --group "1" --group "Wallpaper" --group "org.kde.image" --group "General" --key "Image" "file://$WALLPAPER_PATH"
kwriteconfig5 --file plasma-org.kde.plasma.desktop-appletsrc --group "Containments" --group "1" --group "Wallpaper" --group "org.kde.image" --group "General" --key "PreviewImage" "file://$WALLPAPER_PATH"
fi

echo "Fond d'écran ArchimedeOS configuré: $WALLPAPER_PATH"
2 changes: 2 additions & 0 deletions iso/profiledef.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,6 @@ file_permissions=(
["/root/.gnupg"]="0:0:700"
["/etc/sudoers.d"]="0:0:750"
["/etc/sudoers.d/g_wheel"]="0:0:440"
["/usr/local/bin/archimedeos-setup-wallpaper"]="0:0:755"
["/usr/local/bin/archimedeos-post-install-wallpaper"]="0:0:755"
)