Set everything under the chromium guard

This commit is contained in:
David Heinemeier Hansson
2025-08-31 13:08:40 +02:00
parent 80341b296e
commit fe20e89e0e

View File

@@ -1,15 +1,15 @@
echo "Switch to Omarchy Chromium for synchronized theme switching" 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 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-drop chromium
omarchy-pkg-add omarchy-chromium omarchy-pkg-add omarchy-chromium