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" ||