chrome
This directory contains configuration files for the Google Chrome browser, enabling Talon to interact with it effectively.
The file chrome.py
defines the application context for Chrome across different operating systems. It uses Talon's Context
and Module
to specify which application it applies to based on the OS and the executable name or bundle identifier. It also defines a chrome_mod
action that presses a key with the correct modifier (cmd
on macOS and ctrl
on other platforms). Additionally it defines a tab_close_wrapper
that waits for a short time before closing a tab, and it defines a show_extensions
action that opens a new tab and navigates to the chrome extensions page.
The file chrome.talon
uses the app: chrome
context defined in chrome.py
to enable certain tags when chrome is active, specifically browser
and user.tabs
, which makes the commands defined elsewhere in the Talon configuration that relate to browsers and tabs available when using Chrome. It also defines custom voice commands such as "profile switch" to switch profiles and "tab search" to open tab search and type text.