diff options
Diffstat (limited to 'raveos-hyprland-theme/raveos-hyprland-apply.sh')
| -rw-r--r-- | raveos-hyprland-theme/raveos-hyprland-apply.sh | 13 |
1 files changed, 13 insertions, 0 deletions
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 |