From ff6671f5abdf8b01b405ea3e39c20191a0cf757c Mon Sep 17 00:00:00 2001 From: lonkaars Date: Sat, 9 Mar 2024 16:27:28 +0100 Subject: WIP brave theme reload --- .local/share/bin/brave | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to '.local/share/bin/brave') diff --git a/.local/share/bin/brave b/.local/share/bin/brave index c645f54..966b990 100755 --- a/.local/share/bin/brave +++ b/.local/share/bin/brave @@ -1,9 +1,7 @@ #!/bin/sh - -XDG_CONFIG_HOME="${XDG_CONFIG_HOME:-$HOME/.config}" -BRAVE_USER_FLAGS_FILE="$XDG_CONFIG_HOME/brave-flags.conf" -if [[ -f $BRAVE_USER_FLAGS_FILE ]]; then - USER_FLAGS="$(cat $BRAVE_USER_FLAGS_FILE | sed 's/#.*//')" -fi - -/usr/bin/brave $@ $USER_FLAGS +# the remote debugging is so brave can be hooked into by +# ~/.local/share/mode/reload.d/brave. this is probaby bad for security if +# you're not the only user on the system +/usr/bin/brave \ + --remote-debugging-port=9222 + "$@" -- cgit v1.2.3