Preserve user state during theme setup

This commit is contained in:
David Heinemeier Hansson committed 2026-07-17 07:59:20 -07:00
1 parent 09aac40eae
commit 16b5f2157f
2 files changed
+46 -7

No files matched your search

+8 -7
View File
@@ -1,13 +1,14 @@
# Setup user theme folder
# Setup user theme folder and seed the default only when no theme exists yet.
mkdir -p ~/.config/omarchy/themes
if [[ ${OMARCHY_SETUP_CONTEXT:-runtime} == "iso-chroot" ]]; then
OMARCHY_THEME_HEADLESS=1 omarchy-theme-set "Tokyo Night"
else
omarchy-theme-set "Tokyo Night"
if [[ ! -s $HOME/.local/state/omarchy/current/theme.name ]]; then
if [[ ${OMARCHY_SETUP_CONTEXT:-runtime} == "iso-chroot" ]]; then
OMARCHY_THEME_HEADLESS=1 omarchy-theme-set "Tokyo Night"
rm -f ~/.config/chromium/SingletonLock # otherwise archiso owns the Chromium singleton
else
omarchy-theme-set "Tokyo Night"
fi
fi
rm -rf ~/.config/chromium/SingletonLock
omarchy-theme-set-pi --activate
mkdir -p ~/.config/btop/themes