From 52610e056a0eb86be2c48bce43943d01139acfc0 Mon Sep 17 00:00:00 2001 From: david Date: Fri, 14 Nov 2025 14:46:57 -0600 Subject: [PATCH] Ignore brave browser in theme-set for now I dug at this for a while and it never worked well. There might be some way to do this with what currently exists, but it isn't obvious if so and I don't think it is worth it. I think I may prefer to just set brave to dark mode and keep the frame minimal. Also, my plan is to switch to using qutebrowser as my primary browser anyway. --- src_files/.local/scripts/theme-set | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src_files/.local/scripts/theme-set b/src_files/.local/scripts/theme-set index cadbc00..0e69c6b 100755 --- a/src_files/.local/scripts/theme-set +++ b/src_files/.local/scripts/theme-set @@ -45,12 +45,12 @@ theme_update_browser() { ) [[ "$OSTYPE" != *"darwin"* ]] && { echo "{\"$policy\": \"$color_hex\"}" > "/etc/brave/policies/managed/color.json" + brave --refresh-platform-policy --no-startup-window > /dev/null } || { - # currently not working, property is set and seen by brave, but colors are not - # actually applied, leaving here as is for now; TODO: fix or just remove - defaults write com.brave.browser $policy -string "$color_hex" + # TODO: fix or just remove this macos part; currently, property is set and seen + # by brave, but colors are applied either with a huge delay or not at all + # defaults write com.brave.Browser $policy -string "$color_hex" } - brave --refresh-platform-policy --no-startup-window > /dev/null } [[ ! -z $1 ]] && raw_target="$1" ||