mirror of
https://github.com/basecamp/omarchy.git
synced 2026-02-17 15:25:37 +00:00
Set everything under the chromium guard
This commit is contained in:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user