- packages.conf: fix operations format (strings -> empty list) - netinstall.yaml: remove empty Style group - packagechooser.conf: add Breeze-style init system SVG icons - wallpaper: pre-bake config in skel for instant wallpaper, remove wait loop - AGENTS.md: add GPG signing instructions
45 lines
1.4 KiB
Bash
Executable File
45 lines
1.4 KiB
Bash
Executable File
#!/usr/bin/env bash
|
|
# One-shot wallpaper setter for Antergos NeXT
|
|
# Runs at first login via autostart, then disables itself
|
|
|
|
LOG="/tmp/antergos-wallpaper.log"
|
|
MARKER="$HOME/.config/antergos-wallpaper-set"
|
|
WALLPAPER="/usr/share/wallpapers/antergos-wallpaper/contents/images/adwaita-morning.webp"
|
|
|
|
echo "[$(date)] Starting" > "$LOG"
|
|
|
|
if [[ -f "$MARKER" ]]; then
|
|
echo "[$(date)] Marker exists, exiting" >> "$LOG"
|
|
exit 0
|
|
fi
|
|
|
|
if [[ ! -f "$WALLPAPER" ]]; then
|
|
echo "[$(date)] Wallpaper not found: $WALLPAPER" >> "$LOG"
|
|
ls -la /usr/share/wallpapers/antergos-wallpaper/contents/images/ >> "$LOG" 2>&1
|
|
touch "$MARKER"
|
|
exit 1
|
|
fi
|
|
|
|
echo "[$(date)] Wallpaper found, applying..." >> "$LOG"
|
|
|
|
echo "[$(date)] Applying wallpaper..." >> "$LOG"
|
|
/usr/bin/plasma-apply-wallpaperimage "$WALLPAPER" >> "$LOG" 2>&1
|
|
RC=$?
|
|
echo "[$(date)] plasma-apply-wallpaperimage exit code: $RC" >> "$LOG"
|
|
|
|
if [[ $RC -ne 0 ]]; then
|
|
echo "[$(date)] Falling back to qdbus script..." >> "$LOG"
|
|
qdbus org.kde.plasmashell /PlasmaShell org.kde.PlasmaShell.evaluateScript "
|
|
desktops().forEach(function(d) {
|
|
d.currentConfigGroup = ['Wallpaper', 'org.kde.image', 'General'];
|
|
d.writeConfig('Image', 'file://${WALLPAPER}');
|
|
d.reloadConfig();
|
|
});
|
|
" >> "$LOG" 2>&1
|
|
FALLBACK_RC=$?
|
|
echo "[$(date)] qdbus fallback exit code: $FALLBACK_RC" >> "$LOG"
|
|
fi
|
|
|
|
touch "$MARKER"
|
|
echo "[$(date)] Done" >> "$LOG"
|