diff --git a/bin/omarchy-theme-set-browser b/bin/omarchy-theme-set-browser index 0b4eff6a..9594de18 100755 --- a/bin/omarchy-theme-set-browser +++ b/bin/omarchy-theme-set-browser @@ -13,14 +13,8 @@ if omarchy-cmd-present chromium || omarchy-cmd-present helium-browser || omarchy fi if omarchy-cmd-present chromium; then - rm -f /etc/chromium/policies/managed/color.json - chromium --no-startup-window --set-theme-color="$THEME_RGB_COLOR" >/dev/null - - if [[ -f ~/.config/omarchy/current/theme/light.mode ]]; then - chromium --no-startup-window --set-color-scheme="light" >/dev/null - else - chromium --no-startup-window --set-color-scheme="dark" >/dev/null - fi + echo "{\"BrowserThemeColor\": \"$THEME_HEX_COLOR\"}" | tee "/etc/chromium/policies/managed/color.json" >/dev/null + chromium --refresh-platform-policy --no-startup-window >/dev/null fi if omarchy-cmd-present brave; then diff --git a/install/omarchy-base.packages b/install/omarchy-base.packages index d91ed9ad..cfa5172f 100644 --- a/install/omarchy-base.packages +++ b/install/omarchy-base.packages @@ -13,6 +13,7 @@ bluetui bolt brightnessctl btop +chromium clang cups cups-browsed @@ -87,7 +88,6 @@ nss-mdns nvim obs-studio obsidian -omarchy-chromium omarchy-nvim omarchy-walker opencode diff --git a/migrations/1769510847.sh b/migrations/1769510847.sh new file mode 100644 index 00000000..579a69df --- /dev/null +++ b/migrations/1769510847.sh @@ -0,0 +1,5 @@ +echo "Switch back to mainline chromium now that it supports full live themeing" + +omarchy-pkg-drop omarchy-chromium +omarchy-pkg-add chromium +omarchy-theme-set-browser