Hotkey manager for Windows and Linux

Global hotkeys that run HTTP requests, commands and Home Assistant actions.

TinyTrigger sits in the system tray. You record a key combination, attach a list of actions, and it runs them in order every time you press it. Free for 5 triggers, €9 once if you need more.

The free version has every action type. The license only lifts the trigger limit: see what it covers.

TinyTrigger on Windows: the trigger list with four triggers on Ctrl+F1 to Ctrl+F4, the Add Trigger dialog recording Ctrl+Delete, and an Edit Action dialog set to Home Assistant Control for an alarm entity.
The trigger list, the trigger editor with its hotkey recorder, and a Home Assistant action picked from the entity browser.

Triggers

A trigger is a hotkey and a list of actions

Click the hotkey field, press the keys, add actions. There are six kinds, and you can mix them in one chain.

HTTP request
GET, POST, PUT or DELETE to any URL, with headers, a body and basic authentication. Good for webhooks, REST APIs and devices on your network.
Run command
Starts a program, a batch file or a shell script, with an optional working directory.
Delay
Waits a number of milliseconds before the next action.
Send keystrokes
Types a text or presses another key combination.
Home Assistant
Calls a service on an entity you pick from a list: turn_on, toggle, set_temperature, close_cover and others.
MQTT publish
Publishes a payload to a topic, with QoS and retain.

By default a hotkey is consumed, so the application in front never sees it. You can switch that off per trigger and let the keys pass through. Several triggers can share one hotkey: they all fire.

Home Assistant and MQTT

It works in both directions

Connect TinyTrigger to your Home Assistant instance and your MQTT broker once, under Settings, Integrations. MQTT passwords and Home Assistant tokens go into the credential store of your operating system.

Keyboard TinyTrigger Home Assistant

From your keyboard to the house

The Home Assistant action lists your controllable entities: lights, switches, climate, covers, media players. Pick one, pick a service, bind it to a key. Ctrl+F3 turns the lights off.

Home Assistant MQTT TinyTrigger

From the house to your PC

TinyTrigger announces your triggers through MQTT discovery, so they show up in Home Assistant. A dashboard button, an automation or a voice assistant connected to Home Assistant can then run a trigger on your computer.

Devices that announce themselves through MQTT discovery can also be browsed and controlled directly, without setting anything up in Home Assistant.

Configuration

Your triggers live in a JSON file on your disk

Edit them in the app or in a text editor. Export the configuration to back it up or to copy it to another machine, then import it there.

Windows: %APPDATA%\com.slashpaf\TinyTrigger\
Linux: ~/.config/com.slashpaf/tinytrigger/

{
  "name": "Desk lights",
  "hotkey": "ctrl+f1",
  "enabled": true,
  "suppress": true,
  "actions": [
    { "type": "http_request", "method": "GET",
      "url": "http://192.168.1.100/api/lights/toggle" },
    { "type": "delay", "milliseconds": 1000 },
    { "type": "execute_command",
      "command": "C:\\tools\\switch_to_projector.bat" }
  ]
}

One trigger as it is stored. suppress decides whether the hotkey is kept from other applications.

Good to know

Small on purpose

TinyTrigger started as a lighter alternative to AutoHotkey, for the many cases where all you need is a key that calls something: a light, a script, a webhook.

  • No code injection. Anti-cheat software often flags AutoHotkey. TinyTrigger only listens for hotkeys through the normal keyboard interface of the operating system. It never injects code into other programs and never reads their memory. Using it to cheat is against the terms.
  • Not a scripting language. A trigger is a fixed list of actions. For conditions or loops, put them in the script or the Home Assistant automation that the trigger calls.
  • No cloud sync. Your configuration stays on your computer. Move it between machines with export and import.

Demo

Two minutes of the app in use

A screen recording of building and running triggers. The video only starts loading when you press play.

Or open the file directly: TinyTrigger.mp4 (84 MB).

Install

One file on Windows, one command on Linux

TinyTrigger checks for a new version when it starts. With a license, updates download in the background and apply at the next start. Without one, you get a dialog with a download link.

Release notes are in the changelog, also as an RSS feed.

Windows

A single executable for Windows 10 and later. Run it and look for the icon in the system tray.

Download TinyTrigger.exe

Linux

Run this as your normal user, not as root. The script detects your architecture (x86_64 and aarch64 builds are published), installs to ~/.local/share/applications-bin/TinyTrigger and adds an entry to your application menu.

curl -sSL https://tinytrigger.io/install.sh | bash

On a Wayland session the installer configures the launcher for you and asks before installing any missing system package. You can read the script first.

To remove it again:

curl -sSL https://tinytrigger.io/install.sh | bash -s uninstall

Price

Free for 5 triggers. €9, once, for as many as you want.

No subscription. The license is valid on all the devices you own and includes all future updates.

Get a lifetime license

FreeLifetime license
Price€0€9 once, VAT included
Enabled triggers5Unlimited
Action typesAllAll
UpdatesManual downloadAutomatic, in the background
Priority email supportNoYes

On the free version you can store more than 5 triggers and choose which 5 are enabled. Refunds within 14 days: see the refund policy.