From fe20e89e0e90bc24cf670bbf82b9307ff31e8152 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Sun, 31 Aug 2025 13:08:40 +0200 Subject: [PATCH] Set everything under the chromium guard --- migrations/1755164105.sh | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/migrations/1755164105.sh b/migrations/1755164105.sh index 26ba519..e4a3f38 100644 --- a/migrations/1755164105.sh +++ b/migrations/1755164105.sh @@ -1,15 +1,15 @@ echo "Switch to Omarchy Chromium for synchronized theme switching" -set_theme_colors() { - if [[ -f ~/.config/omarchy/current/theme/chromium.theme ]] && command -v chromium &>/dev/null; then - chromium --no-startup-window --set-theme-color="$(<~/.config/omarchy/current/theme/chromium.theme)" - else - # Use a default, neutral grey if theme doesn't have a color - chromium --no-startup-window --set-theme-color="28,32,39" - fi -} - if omarchy-cmd-present chromium; then + set_theme_colors() { + if [[ -f ~/.config/omarchy/current/theme/chromium.theme ]]; then + chromium --no-startup-window --set-theme-color="$(<~/.config/omarchy/current/theme/chromium.theme)" + else + # Use a default, neutral grey if theme doesn't have a color + chromium --no-startup-window --set-theme-color="28,32,39" + fi + } + omarchy-pkg-drop chromium omarchy-pkg-add omarchy-chromium