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"
|
||||||
} || {
|
|
||||||
# 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"
|
|
||||||
}
|
|
||||||
brave --refresh-platform-policy --no-startup-window > /dev/null
|
brave --refresh-platform-policy --no-startup-window > /dev/null
|
||||||
|
} || {
|
||||||
|
# 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"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
[[ ! -z $1 ]] && raw_target="$1" ||
|
[[ ! -z $1 ]] && raw_target="$1" ||
|
||||||
|
|||||||
Reference in New Issue
Block a user