These commands provide OS-level window and cursor information that the frontend uses to position the overlay and identify the active application, as well as control the settings window.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/devv-shayan/Trueears/llms.txt
Use this file to discover all available pages before exploring further.
TypeScript interfaces
The
url field is populated only for browser windows (Chrome, Edge, Firefox, Brave, Opera, Vivaldi, Arc). For non-browser apps it is always null. Trueears uses the URL to match browser-based App Profiles such as Gmail or Google Docs.get_active_window_info
Retrieves information about the currently focused window at the moment the command is called.
Returns
Promise<ActiveWindowInfo | null>
The executable filename of the process that owns the window (e.g.,
Code.exe, slack.exe). This is the field matched against App Profile entries.The title bar text of the focused window.
The full absolute path to the application’s executable file.
The active URL for browser windows, read via Windows UI Automation.
null for non-browser applications.get_cursor_position
Returns the current mouse cursor position in physical screen coordinates.
Returns
Promise<CursorPosition>
Horizontal position in physical pixels, measured from the left edge of the primary monitor.
Vertical position in physical pixels, measured from the top edge of the primary monitor.
On Linux, cursor position is read via
xdotool getmouselocation --shell. On Hyprland/Wayland without xdotool, it falls back to hyprctl cursorpos. On macOS, this command returns an error.set_ignore_mouse_events
Configures whether the main overlay window should pass mouse events through to windows beneath it (click-through mode).
Parameters
When
true, mouse events pass through the overlay to the window below it. When false, the overlay captures mouse input normally.Returns
Promise<void>
On Linux, enabling click-through (
ignore: true) is silently skipped to avoid a GTK crash that can occur before the window surface is fully initialized. Disabling click-through (ignore: false) works normally on all platforms.open_settings_window
Opens the Trueears settings window. If the settings window is already open, calling this command closes it instead (toggle behavior).
Returns
Promise<void>
Behavior
- If no settings window exists, a new one is created (1200×800 minimum, resizable, centered, maximized on open, decorated).
- If a settings window is already open, it is closed.
- The new window starts hidden; a failsafe timer automatically shows it after 2000ms if the frontend has not shown it sooner.
- The settings window is always interactive —
set_ignore_cursor_events(false)is called automatically on creation.
