diff options
| -rw-r--r-- | raveos-hyprland-theme/PKGBUILD | 2 | ||||
| -rw-r--r-- | raveos-hyprland-theme/raveos-hyprland-apply.sh | 13 | ||||
| -rw-r--r-- | raveos-hyprland-theme/theme-data/dms/Common/SessionData.qml | 2 |
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 |