AI chat

One key opens Spotify, Discord, and my browser

Assumed F10 as the trigger key and https://google.com as the browser destination.

How it works

  • Bind("F10", Async(...)): Intercepts F10 and runs the launch sequence inside a coroutine so the input tick loop is never blocked.
  • Protocol URIs (spotify:, discord:): Uses OS shell commands (start on Windows, open on macOS, xdg-open on Linux) to open Spotify and Discord via their registered URI schemes, launching them if they are closed or bringing them to focus if already running.
  • Web URL: Opening a web link invokes your system's default browser.
  • Modeline: Declares min_sdk=3.0.0 and requests permission=exec to allow shell command execution via System.Exec.

Learn more