Skip to content

feature request: brave browser.... #2

Description

@Vaisakhkm2625

This is the script i using for switching brave profiles... (chatgpt generated... though works great...)

#!/bin/sh

# Define the Brave profile directory and Local State file
PROFILE_DIR="$HOME/.config/BraveSoftware/Brave-Browser"
LOCAL_STATE="$PROFILE_DIR/Local State"

# Extract profile names from the Local State file
profiles=$(jq -r '.profile.info_cache | to_entries[] | .value.name + " -- " + .key' "$LOCAL_STATE")

# Use rofi to select a profile
selected_entry=$(echo "$profiles" | rofi -dmenu -i -p "Select Brave Profile:")

# Extract the profile directory from the selected entry
selected_profile=$(echo "$selected_entry" | awk -F ' -- ' '{print $2}')

# If a profile was selected, launch Brave with that profile
if [ -n "$selected_profile" ]; then
	brave --profile-directory="$selected_profile" &
fi

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions