Skip to content

kindle

This directory provides Talon integration for the Kindle e-reader application on Windows. It enables hands-free reading by mapping Talon's standard page-navigation commands to Kindle's application-specific hotkeys.

How It Works

The files in this directory work together to identify the Kindle application, hook it into Talon's global page-navigation interface, and translate general commands (like "next page" or "page jump") into physical keystrokes:

  • App Definition: kindle.py defines the apps.kindle identifier. It targets the application on Windows by matching either the window name (Kindle) or the executable name (kindle.exe).
  • Context & Tag Activation: kindle.talon activates whenever the defined kindle app is focused. When active, it applies the user.pages tag. This tag signals to Talon that Kindle supports standard page-turning voice commands.
  • Action Implementation: kindle_win.py implements the actual keyboard behaviors required to satisfy the user.pages actions under Windows:
    • page_next() presses the down arrow key.
    • page_previous() presses the up arrow key.
    • page_jump(number) opens Kindle's "Go to..." dialog using ctrl-g, inputs the target page or location number, and presses enter.