#!/usr/bin/env bash _raveos_init="${HOME}/.raveos-init-done" if [[ -f "${_raveos_init}" ]]; then unset _raveos_init return 0 2>/dev/null || exit 0 fi # GTK tema gsettings set org.gnome.desktop.interface gtk-theme 'Yaru-olive-dark' 2>/dev/null || true gsettings set org.gnome.desktop.interface icon-theme 'Adwaitaru-olive' 2>/dev/null || true # DMS session.json: hatterkep beallitasa _session_file="${HOME}/.local/state/DankMaterialShell/session.json" _bg_file="${HOME}/.config/background.jpg" if [[ -f "${_bg_file}" ]]; then if [[ ! -f "${_session_file}" ]]; then mkdir -p "$(dirname "${_session_file}")" printf '{\n "wallpaperPath": "%s"\n}\n' "${_bg_file}" > "${_session_file}" elif ! grep -q '"wallpaperPath": "[^"]\+' "${_session_file}" 2>/dev/null; then sed -i "s|\"wallpaperPath\": \"\"|\"wallpaperPath\": \"${_bg_file}\"|g" "${_session_file}" 2>/dev/null || true fi fi unset _session_file _bg_file touch "${_raveos_init}" 2>/dev/null || true unset _raveos_init