summaryrefslogtreecommitdiff
path: root/raveos-hyprland-theme
diff options
context:
space:
mode:
authorNippy <nippy@rp1.hu>2026-05-09 14:54:01 +0200
committerNippy <nippy@rp1.hu>2026-05-09 14:54:01 +0200
commita7ee10a3c9428aceb67684586e6d7dfe323a7970 (patch)
tree44c67a56b0d9f32adf8805333e789eaa363165b9 /raveos-hyprland-theme
parent6b8a4fa6bd0707e26d061fe13db8c530485cf9fa (diff)
downloadRaveOS-PKGBUILD-a7ee10a3c9428aceb67684586e6d7dfe323a7970.tar.gz
RaveOS-PKGBUILD-a7ee10a3c9428aceb67684586e6d7dfe323a7970.zip
raveos update
Diffstat (limited to 'raveos-hyprland-theme')
-rw-r--r--raveos-hyprland-theme/PKGBUILD2
-rw-r--r--raveos-hyprland-theme/raveos-hyprland-apply.sh13
-rw-r--r--raveos-hyprland-theme/theme-data/dms/Common/SessionData.qml2
3 files changed, 15 insertions, 2 deletions
diff --git a/raveos-hyprland-theme/PKGBUILD b/raveos-hyprland-theme/PKGBUILD
index 0744289..fa0aa00 100644
--- a/raveos-hyprland-theme/PKGBUILD
+++ b/raveos-hyprland-theme/PKGBUILD
@@ -1,6 +1,6 @@
pkgname=raveos-hyprland-theme
pkgver=0.0.0
-pkgrel=26
+pkgrel=27
pkgdesc="RaveOS Hyprland theme payload and installer (includes DankMaterialShell)"
arch=('any')
url="https://raveos.local"
diff --git a/raveos-hyprland-theme/raveos-hyprland-apply.sh b/raveos-hyprland-theme/raveos-hyprland-apply.sh
index 22b2384..c53b943 100644
--- a/raveos-hyprland-theme/raveos-hyprland-apply.sh
+++ b/raveos-hyprland-theme/raveos-hyprland-apply.sh
@@ -173,6 +173,19 @@ while IFS=: read -r user _ uid gid _ home shell; do
runuser -u "$user" -- xdg-user-dirs-update 2>/dev/null || true
+ dms_session="${home}/.local/state/DankMaterialShell/session.json"
+ if [[ -f "$dms_session" ]]; then
+ python3 -c "
+import json, sys
+with open('${dms_session}') as f:
+ d = json.load(f)
+if not d.get('wallpaperPath'):
+ d['wallpaperPath'] = '/usr/share/raveos/hyprland-theme/theme-data/background.jpg'
+ with open('${dms_session}', 'w') as f:
+ json.dump(d, f, indent=2)
+" 2>/dev/null || true
+ fi
+
chown -R "${uid}:${gid}" "$home"
if command -v matugen &>/dev/null && [[ -f "${home}/.config/background" ]]; then
diff --git a/raveos-hyprland-theme/theme-data/dms/Common/SessionData.qml b/raveos-hyprland-theme/theme-data/dms/Common/SessionData.qml
index 13b1359..c57b433 100644
--- a/raveos-hyprland-theme/theme-data/dms/Common/SessionData.qml
+++ b/raveos-hyprland-theme/theme-data/dms/Common/SessionData.qml
@@ -52,7 +52,7 @@ Singleton {
}
}
- property string wallpaperPath: "/usr/share/raveos/hyprland-theme/theme-data/background"
+ property string wallpaperPath: "/usr/share/raveos/hyprland-theme/theme-data/background.jpg"
property bool perMonitorWallpaper: false
property var monitorWallpapers: ({})
property bool perModeWallpaper: false