From f451b504eb4e304e6467248d827d15691a900f03 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Sun, 24 May 2026 16:30:47 -0400 Subject: [PATCH] install: route theme setup through split scripts --- install/config/pi.sh | 1 - install/config/theme-user.sh | 1 + install/config/theme.sh | 27 --------------------------- install/first-run/gnome-theme.sh | 5 ----- 4 files changed, 1 insertion(+), 33 deletions(-) delete mode 100644 install/config/pi.sh delete mode 100644 install/config/theme.sh delete mode 100644 install/first-run/gnome-theme.sh diff --git a/install/config/pi.sh b/install/config/pi.sh deleted file mode 100644 index a8a6ae07..00000000 --- a/install/config/pi.sh +++ /dev/null @@ -1 +0,0 @@ -omarchy-theme-set-pi --activate diff --git a/install/config/theme-user.sh b/install/config/theme-user.sh index c5a79394..29645acf 100644 --- a/install/config/theme-user.sh +++ b/install/config/theme-user.sh @@ -10,6 +10,7 @@ else omarchy-theme-set "Tokyo Night" fi rm -rf ~/.config/chromium/SingletonLock # otherwise archiso will own the chromium singleton +omarchy-theme-set-pi --activate # Set specific app links for current theme mkdir -p ~/.config/btop/themes diff --git a/install/config/theme.sh b/install/config/theme.sh deleted file mode 100644 index 20bb6e35..00000000 --- a/install/config/theme.sh +++ /dev/null @@ -1,27 +0,0 @@ -# Set links for Nautilus action icons -sudo ln -snf /usr/share/icons/Adwaita/symbolic/actions/go-previous-symbolic.svg /usr/share/icons/Yaru/scalable/actions/go-previous-symbolic.svg -sudo ln -snf /usr/share/icons/Adwaita/symbolic/actions/go-next-symbolic.svg /usr/share/icons/Yaru/scalable/actions/go-next-symbolic.svg - -# Setup user theme folder -mkdir -p ~/.config/omarchy/themes - -# Chromium policy directory for theme -sudo mkdir -p /etc/chromium/policies/managed -sudo chmod a+rw /etc/chromium/policies/managed - -# Set initial theme. Offline ISO installs only need the user's theme files and -# symlinks seeded; there is no running desktop/session bus in the chroot, so -# skip shell IPC, dconf, app retint hooks, and background transition work. -if install_mode_is offline; then - OMARCHY_THEME_OFFLINE=1 OMARCHY_THEME_SKIP_BACKGROUND=1 omarchy-theme-set "Tokyo Night" -else - omarchy-theme-set "Tokyo Night" -fi -rm -rf ~/.config/chromium/SingletonLock # otherwise archiso will own the chromium singleton - -# Set specific app links for current theme -mkdir -p ~/.config/btop/themes -ln -snf ~/.config/omarchy/current/theme/btop.theme ~/.config/btop/themes/current.theme - -# Default Chromium to follow system appearance ("device") instead of dark -echo '{"browser":{"theme":{"color_scheme":0,"color_scheme2":0}}}' | sudo tee /usr/lib/chromium/initial_preferences >/dev/null diff --git a/install/first-run/gnome-theme.sh b/install/first-run/gnome-theme.sh deleted file mode 100644 index 29363126..00000000 --- a/install/first-run/gnome-theme.sh +++ /dev/null @@ -1,5 +0,0 @@ -gsettings set org.gnome.desktop.interface gtk-theme "Adwaita-dark" -gsettings set org.gnome.desktop.interface color-scheme "prefer-dark" -gsettings set org.gnome.desktop.interface icon-theme "Yaru-blue" - -sudo gtk-update-icon-cache /usr/share/icons/Yaru