blob: b0d0d6e0cba80cf6bcaec59ae6fb9bec45638aea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/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
|