summaryrefslogtreecommitdiff
path: root/raveos-hyprland-theme/raveos-hyprland-apply.sh
diff options
context:
space:
mode:
Diffstat (limited to 'raveos-hyprland-theme/raveos-hyprland-apply.sh')
-rw-r--r--raveos-hyprland-theme/raveos-hyprland-apply.sh33
1 files changed, 8 insertions, 25 deletions
diff --git a/raveos-hyprland-theme/raveos-hyprland-apply.sh b/raveos-hyprland-theme/raveos-hyprland-apply.sh
index 98aecec..9a66712 100644
--- a/raveos-hyprland-theme/raveos-hyprland-apply.sh
+++ b/raveos-hyprland-theme/raveos-hyprland-apply.sh
@@ -140,6 +140,14 @@ while IFS=: read -r user _ uid gid _ home shell; do
install -Dm644 "${PAYLOAD}/DankMaterialShell/.firstlaunch" \
"${home}/.config/DankMaterialShell/.firstlaunch"
+ # DMS session.json: háttérkép beállítása
+ mkdir -p "${home}/.local/state/DankMaterialShell"
+ cat > "${home}/.local/state/DankMaterialShell/session.json" <<-SEOF
+{
+ "wallpaperPath": "${home}/.config/background.jpg"
+}
+SEOF
+
# Skel tartalom
[[ -d "${PAYLOAD}/skel" ]] && \
cp -r --no-preserve=ownership "${PAYLOAD}/skel/." "$home/"
@@ -181,14 +189,6 @@ while IFS=: read -r user _ uid gid _ home shell; do
# XDG user könyvtárak (Letöltések, Dokumentumok stb.)
runuser -u "$user" -- xdg-user-dirs-update 2>/dev/null || true
- # Session init service engedélyezése (user service)
- # A systemctl --user enable nem működik boot-kor (nincs D-Bus session),
- # ezért kézzel hozzuk létre a symlink-et a graphical-session.target-ben.
- local svc_dir="${home}/.config/systemd/user/graphical-session.target.wants"
- mkdir -p "${svc_dir}"
- ln -sf /usr/lib/systemd/user/raveos-hyprland-session-init.service \
- "${svc_dir}/raveos-hyprland-session-init.service" 2>/dev/null || true
-
# Tulajdonos visszaállítása
chown -R "${uid}:${gid}" "$home"
@@ -197,23 +197,6 @@ while IFS=: read -r user _ uid gid _ home shell; do
runuser -u "$user" -- matugen image "${home}/.config/background.jpg" 2>/dev/null || true
fi
- # hyprpaper újraindítás, ha Hyprland fut
- # Chroot-ban (Calamares telepítés) ez nem fut — nincs session
- if [[ -d "/run/user/${uid}/hypr" ]]; then
- xdg_run="/run/user/${uid}"
- hypr_sig=$(ls "${xdg_run}/hypr/" 2>/dev/null | tail -1)
- if [[ -n "$hypr_sig" ]]; then
- runuser -u "$user" -- env \
- XDG_RUNTIME_DIR="${xdg_run}" \
- XDG_SESSION_TYPE=wayland \
- XDG_CURRENT_DESKTOP=Hyprland \
- HYPRLAND_INSTANCE_SIGNATURE="${hypr_sig}" \
- WAYLAND_DISPLAY=wayland-1 \
- LIBGL_ALWAYS_SOFTWARE=1 \
- hyprpaper 2>/dev/null &
- fi
- fi
-
done < /etc/passwd
echo "Telepítés kész."