From bcd52fa289fcc5bb42512798c26bb210603c15bd Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Wed, 28 Jan 2026 09:49:42 +0100 Subject: [PATCH 1/2] Switch back to mainline chromium We no longer need the fork, as the themeing is now fully natively supported --- bin/omarchy-theme-set-browser | 10 ++-------- install/omarchy-base.packages | 2 +- migrations/1769510847.sh | 5 +++++ 3 files changed, 8 insertions(+), 9 deletions(-) create mode 100644 migrations/1769510847.sh 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 From 9aff0d4b3b5451bd1637c5b2176645a07a4aadf8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=5B1=3B13D=1B=5B1=3B11D=1B=5B1=3B7DDavid=20Heinemeier=20Ha?= =?UTF-8?q?nsson?= Date: Sun, 15 Feb 2026 23:06:07 +0100 Subject: [PATCH 2/2] Note about consequences --- migrations/1769510847.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/migrations/1769510847.sh b/migrations/1769510847.sh index 579a69df..381d396d 100644 --- a/migrations/1769510847.sh +++ b/migrations/1769510847.sh @@ -1,4 +1,5 @@ echo "Switch back to mainline chromium now that it supports full live themeing" +echo "Note: This required resetting cookies and settings!" omarchy-pkg-drop omarchy-chromium omarchy-pkg-add chromium