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 anyway since I think I may prefer a minimal, static, dark frame for the browser anyway, and since my plan is to eventually switch to using qutebrowser as my primary browser anyway.
This commit is contained in:
@@ -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" ||
|
||||
|
||||
Reference in New Issue
Block a user