Files
omarchy/migrations/1755164105.sh
David Heinemeier Hansson 1099a44c77 Don't need this
2025-08-31 13:35:45 +02:00

25 lines
700 B
Bash

echo "Switch to Omarchy Chromium for synchronized theme switching"
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
if pgrep -x chromium; then
if gum confirm "Chromium must be restarted. Ready?"; then
pkill -x chromium
set_theme_colors
fi
else
set_theme_colors
fi
fi