From 4127c749fb633f363151a77f732c27d58f86bd42 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 24 Apr 2026 10:16:31 +0200 Subject: [PATCH 1/3] Proper fix for using device dark mode in Chrome --- install/config/theme.sh | 2 +- migrations/1777018408.sh | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100644 migrations/1777018408.sh diff --git a/install/config/theme.sh b/install/config/theme.sh index 439ec08d..0dab91ad 100644 --- a/install/config/theme.sh +++ b/install/config/theme.sh @@ -24,4 +24,4 @@ sudo mkdir -p /etc/brave/policies/managed sudo chmod a+rw /etc/brave/policies/managed # Default Chromium to follow system appearance ("device") instead of dark -echo '{"browser":{"theme":{"color_scheme":0}}}' | sudo tee /usr/lib/chromium/initial_preferences >/dev/null +echo '{"browser":{"theme":{"color_scheme":0,"color_scheme2":0}}}' | sudo tee /usr/lib/chromium/initial_preferences >/dev/null diff --git a/migrations/1777018408.sh b/migrations/1777018408.sh new file mode 100644 index 00000000..af644b53 --- /dev/null +++ b/migrations/1777018408.sh @@ -0,0 +1,9 @@ +echo "Fix Chromium appearance mode to also set color_scheme2 (the field Chromium actually reads now)" + +echo '{"browser":{"theme":{"color_scheme":0,"color_scheme2":0}}}' | sudo tee /usr/lib/chromium/initial_preferences >/dev/null + +# Update existing Chromium profiles so color_scheme2 follows the system, not dark +PREFS="$HOME/.config/chromium/Default/Preferences" +if [[ -f "$PREFS" ]] && command -v jq &>/dev/null; then + jq '.browser.theme.color_scheme = 0 | .browser.theme.color_scheme2 = 0' "$PREFS" > "$PREFS.tmp" && mv "$PREFS.tmp" "$PREFS" +fi From 0a5cd43aacac010e8861b788aadda63d376d0a76 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Mon, 4 May 2026 19:44:41 -0400 Subject: [PATCH 2/3] Add migration to handle lingering panel_replay addition --- migrations/1777909712.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 migrations/1777909712.sh diff --git a/migrations/1777909712.sh b/migrations/1777909712.sh new file mode 100644 index 00000000..60c738a1 --- /dev/null +++ b/migrations/1777909712.sh @@ -0,0 +1,10 @@ +echo "Remove stale Xe Panel Replay kernel cmdline from Dell XPS Panther Lake systems" + +DEFAULT_LIMINE="/etc/default/limine" + +if omarchy-hw-match "XPS" && omarchy-hw-intel-ptl; then + if [[ -f $DEFAULT_LIMINE ]] && grep -q 'xe\.enable_panel_replay' "$DEFAULT_LIMINE"; then + sudo sed -i '/^KERNEL_CMDLINE.*xe\.enable_panel_replay/d' "$DEFAULT_LIMINE" + sudo limine-update + fi +fi From a3aedb0c4d0127b4f3138b1264a5611aecaaa72e Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Mon, 4 May 2026 19:46:42 -0400 Subject: [PATCH 3/3] Version bump --- version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/version b/version index 7c69a55d..a76ccff2 100644 --- a/version +++ b/version @@ -1 +1 @@ -3.7.0 +3.7.1