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.
This commit is contained in:
@@ -45,12 +45,12 @@ theme_update_browser() {
|
|||||||
)
|
)
|
||||||
[[ "$OSTYPE" != *"darwin"* ]] && {
|
[[ "$OSTYPE" != *"darwin"* ]] && {
|
||||||
echo "{\"$policy\": \"$color_hex\"}" > "/etc/brave/policies/managed/color.json"
|
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
|
# TODO: fix or just remove this macos part; currently, property is set and seen
|
||||||
# actually applied, leaving here as is for now; TODO: fix or just remove
|
# by brave, but colors are applied either with a huge delay or not at all
|
||||||
defaults write com.brave.browser $policy -string "$color_hex"
|
# defaults write com.brave.Browser $policy -string "$color_hex"
|
||||||
}
|
}
|
||||||
brave --refresh-platform-policy --no-startup-window > /dev/null
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[[ ! -z $1 ]] && raw_target="$1" ||
|
[[ ! -z $1 ]] && raw_target="$1" ||
|
||||||
|
|||||||
Reference in New Issue
Block a user