aboutsummaryrefslogtreecommitdiff
path: root/.local/share/bin
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-03-09 16:27:28 +0100
committerlonkaars <loek@pipeframe.xyz>2024-03-09 16:27:28 +0100
commitff6671f5abdf8b01b405ea3e39c20191a0cf757c (patch)
tree0a619a5639e5aa4176cec9c38fab1869fa4ff275 /.local/share/bin
parent5996461915478909d514ad021b026ec0925298e5 (diff)
WIP brave theme reload
Diffstat (limited to '.local/share/bin')
-rwxr-xr-x.local/share/bin/brave14
1 files changed, 6 insertions, 8 deletions
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
+ "$@"