Set Up a Keyboard Shortcut
In this step, you will assign a global keyboard shortcut that starts and stops dictation. The exact steps vary by desktop environment. On GNOME, for example:
- Open Settings and navigate to Keyboard.
- Click View and Customize Shortcuts.
- Scroll to the bottom and select Custom Shortcuts.
- Click the + button to add a new shortcut and fill in the fields:
- Name: anything you like, e.g.
Speed of Sound - Command: the full path to the trigger script, e.g.
/home/your-username/speedofsound/trigger.sh - Shortcut: press your desired key combination, e.g.
Super+Z
- Name: anything you like, e.g.
- Click Add to save.
You can add multiple shortcuts targeting the same trigger script if you wish to.