Skip to content

brave

This directory provides the Talon configuration and action overrides necessary to support voice commands within the Brave Browser across Windows, Linux, and macOS.

Together, these files define how Talon detects Brave and maps generic browser behaviors to Brave-specific actions.

How It Works

The configuration consists of two core files that handle application detection and behavior modification:

  • brave.py defines how Talon identifies the Brave Browser across different operating systems. It uses criteria such as the executable name on Windows (brave.exe) and Linux (brave), and the bundle identifier on macOS (com.brave.Browser). Additionally, it overrides standard browser actions to fit Brave's behavior:

    • Tab Closing: Introduces a small delay (180ms) before executing the standard tab close command to prevent rapid-fire command collisions or UI issues.
    • Extensions: Implements the show_extensions action by opening a new tab and navigating directly to brave://extensions.
  • brave.talon activates whenever the Brave Browser application is in focus. It associates the application context with generic Talon tags:

    • tag(): browser: Enables standard browser commands (such as back, forward, and reload).
    • tag(): user.tabs: Activates universal tab management actions (such as opening, closing, and switching tabs).