Commit Graph
79 Commits
Author SHA1 Message Date
CJ Pais 26ad23a69a fix(linux): make Shift+Insert paste in terminals and default to it
Direct typing turns each character into a keycode, so on Linux it drops
capitals and accents and types the wrong characters on non-US layouts
(#429, #439, #1853). Shift+Insert pastes in GUI apps and terminals alike
once the transcript is also on the primary selection, which kitty, Ghostty,
Alacritty, xterm and VTE read; both are restored afterwards.

New installs get Shift+Insert and a longer restore delay, since Linux apps
fetch the clipboard only when they handle the key. Existing settings are left
alone; a Linux-only What's New note suggests switching. Release notes can now
be platform-specific for that.

Also fixes the enigo Shift+Insert fallback, which sent the keysym for 'v'
and typed 'V'.
2026-11-14 14:24:35 +08:00
CJ Pais e5294479a4 windows: warn if in elevated window (#2502)
* fix(windows): copy the transcript when the focused app runs as administrator

Windows drops keystrokes sent from Handy to an elevated window, and
SendInput isn't documented to report it, so a paste there can fail with
nothing shown. Check the focused window's integrity level before
pasting; when it outranks Handy, leave the transcript on the clipboard
and raise a notice that says to press Ctrl+V.

Refs #434

* fix(windows): only report a paste an elevated window blocks

Leaving the transcript on the clipboard overrode the user's Clipboard
Handling setting. Run the paste exactly as configured and change only
what Handy reports: an error naming the cause, with History as the way
to get the text.

Refs #434

* docs: note Windows admin app limitations
2026-11-14 12:27:20 +08:00
bd87c72c6a Let AppImage users opt into native Wayland (#2453)
* Let AppImage users opt into native Wayland

The AppImage hook forces GDK_BACKEND=x11 after the user's environment,
so GDK_BACKEND=wayland never reaches Handy. Copy HANDY_GDK_BACKEND into
GDK_BACKEND before GTK starts so the hook cannot override it. Default
stays X11 (tauri#8541); #1729 and #2034 need Wayland.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>

* refactor: drop unused return value from apply_handy_gdk_backend

---------

Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
Co-authored-by: CJ Pais <cj@cjpais.com>
2026-11-11 12:31:03 +08:00
Evgeny Khudoba f3d8b876fc fix(linux): keep transparent overlay painting on WebKitGTK 2.54 (#2360)
WebKitGTK 2.54 composites only the damaged region of every frame. With the
DMA-BUF renderer disabled — the long-standing workaround for GPU crashes
(tauri-apps/tauri#9394) — those partial frames arrive in fresh shared-memory
buffers, so every pixel outside the damage becomes transparent. Handy's
frameless overlay card kept only its animated dot and waveform, which users
saw as a half-transparent card with the desktop showing through.

Pick the renderer from the WebKitGTK version linked into the process instead of
always disabling DMA-BUF: 2.54 and newer keep the compositor and move its swap
chain to shared memory (WEBKIT_DMABUF_RENDERER_FORCE_SHM=1), older releases
keep DMA-BUF off as before. Explicit values for either variable still win, and
the Nix wrapper no longer pins the renderer so the runtime policy applies.

Verified headlessly against WebKitGTK 2.54.1 (private sway output, production
environment): before the change a 6940 px recording card painted 600 px, after
it the full compact card and the expanded panel paint exactly as on WebKitGTK
2.52.6, while an explicit WEBKIT_DISABLE_DMABUF_RENDERER=1 still reproduces the
old behavior.

Refs #2166.
2026-11-02 19:50:18 +08:00
Alexander YastrebovandCJ Pais 033c627cc5 Add transcription hook (#930)
* Add transcription hook

Add support for transcription hook - an executable script in app's data directory.

If `hooks/transcription` file exists, Handy runs it passing transcription text via stdin and
uses script stdout as a transcription result.

This approach is a flexible extension point for advanced users
(which nowadays means with access to coding LLM) akin to git hooks.

Here are some possible scenarios:
* simple transcription modifications
* a pipeline involving LLM processing, language detection and translation
* custom paste method (as Handy does nothing if transcription is empty)
* conditional processing based on the active application waiting for the input

See related:
* https://github.com/cjpais/Handy/discussions/168
* https://github.com/cjpais/Handy/discussions/162
* https://github.com/cjpais/Handy/discussions/916
* https://github.com/cjpais/Handy/discussions/911
* https://github.com/cjpais/Handy/discussions/834
* https://github.com/cjpais/Handy/discussions/847
* https://github.com/cjpais/Handy/discussions/833
* https://github.com/cjpais/Handy/discussions/662
* https://github.com/cjpais/Handy/discussions/601
* https://github.com/cjpais/Handy/discussions/335
* https://github.com/cjpais/Handy/pull/739
* https://github.com/cjpais/Handy/pull/638
* https://github.com/cjpais/Handy/pull/455
* https://github.com/cjpais/Handy/issues/157

* fix: run the transcription hook on every pasted transcription, and bound it

The hook lived inside TranscriptionManager::transcribe(), so streaming
transcriptions (finalize_stream) never reached it, while history retries and
the CLI benchmark did, meaning a custom-paste hook could paste when retrying a
history entry. It now runs in the paste path, after LLM post-processing, and
leaves history untouched.

A hung hook used to block the pipeline forever. It now runs as a tokio child
with kill_on_drop, under a 30s timeout and the cancel shortcut, falling back to
the original text. It also uses the portable-aware data dir, feeds stdin while
reading output to avoid pipe deadlocks, and strips one trailing newline so a
plain `echo` doesn't submit the line in a terminal.

* refactor: trim the transcription hook and its README section

Drops the unit tests and folds the timeout into run(), so one error path
covers spawn failures, non-zero exits and timeouts. The README section is cut
to a short description and one example.

* docs: note that the transcription hook doesn't inherit the shell's PATH

Handy launched from the Dock gets launchd's minimal PATH, so Homebrew
tools called from a hook aren't found.

---------

Co-authored-by: CJ Pais <cj@cjpais.com>
2026-11-02 16:39:25 +08:00
CJ Pais 48a3d8e9ee fix(linux): allow renderer opt-out without dropping crash protection (#2249)
Keep DMA-BUF rendering disabled by default, but preserve explicit environment values so users affected by overlay flickering can opt out. Make the Nix wrapper respect the same precedence and document restart and autostart requirements.

Refs #2166
2026-10-10 10:41:21 +08:00
mdcnickandCJ Pais 8f9cf53cd1 docs: restore the recording indicator on Omarchy with native Wayland (#2040)
* docs: explain how to restore the recording overlay on Omarchy

* docs: focus Omarchy workaround on required steps

---------

Co-authored-by: CJ Pais <cj@cjpais.com>
2026-09-19 15:30:07 +08:00
CJ Pais 6917511493 add canty sponsor 2026-09-18 18:36:47 +08:00
CJ Pais 055c7a5eb8 Update README.md 2026-09-18 17:48:52 +08:00
CJ Pais 53766a2792 Update README.md 2026-09-18 17:48:07 +08:00
CJ Pais 53c55d7065 slim readme 2026-09-18 17:47:35 +08:00
CJ Pais ba10ce1943 note for fedora/ubuntu install 2026-09-15 13:29:06 +08:00
CJ Pais 2c5c7601d8 VK_LOADER_LAYERS_DISABLE=~implcit~ default on windows (#2053) 2026-09-10 18:42:38 +08:00
IliaandIlia Yarats 42afd1bf2c docs: help users troubleshoot stale clipboard pastes (#2058)
Co-authored-by: Ilia Yarats <ilia.yarets@gmail.com>
2026-09-10 16:34:40 +08:00
CJ Pais c62a5fcdef auto push to talk mode (#1971)
* first cut auto ptt

* classify hold-vs-tap for presses remembered while busy

* update settings names

* use bindings instead of strings

* clean up for merge
2026-08-30 14:41:49 +08:00
Iaroslav Mazur 8282c4001d docs: note that fn/Globe shortcuts only work on Apple keyboards (#1926)
Users who pair a third-party keyboard with a Mac see an fn-based shortcut work on the built-in keyboard and silently do nothing on the external one, with no error to explain it. The usual conclusion is that Handy is flaky.

- Explain that fn is outside the standard USB HID keyboard spec and is honored by macOS only from Apple devices, so third-party firmware never sends anything for Handy to observe
- Point multi-keyboard users at standard modifiers instead

Reported in #1925.
2026-08-17 21:05:46 +08:00
szafranskiandCJ Pais b8ad109dfa docs: explain Bluetooth microphone audio tradeoff (#1886)
* docs: clarify Bluetooth microphone tradeoff on macOS

* docs: keep Bluetooth warning in README only

---------

Co-authored-by: CJ Pais <cj@cjpais.com>
2026-08-17 18:09:24 +08:00
Giovanni Donisi 079f919981 Fix typos in README.md (#1883) 2026-08-10 15:57:54 +08:00
Benoît Courty 30062fa2e6 Add Ubuntu 26.04 instructions (#1412) 2026-08-09 21:02:53 +08:00
CJ PaisandMurilo Vasconcelos 2266b29b79 remove sigusr1 on linux (#1824)
* drop sigusr1 on linux

Co-authored-by: Murilo Vasconcelos <muriloime@gmail.com>

* consolidate signal setup into signal_handle.rs

---------

Co-authored-by: Murilo Vasconcelos <muriloime@gmail.com>
2026-08-01 18:52:59 +08:00
2f7c2fcade Update "Manual Model Installation" documentation with Parakeet Unified (#1668)
* docs: replace Parakeet section with Parakeet Unified EN (huggingface-cli install)

* corrections

---------

Co-authored-by: andrzej.nescior <andrzej.nescior@nielsen.com>
Co-authored-by: CJ Pais <cj@cjpais.com>
2026-07-31 15:25:41 +08:00
CJ Pais 31d8fc2442 introduce transcribe.cpp (#1529) 2026-07-01 20:38:20 +08:00
CJ Pais 8f72266842 Clarified branding and redistribution terms for Handy 2026-06-23 22:32:21 +08:00
cfab1dda9d fix(models): show size for downloaded models (#1484)
* fix(models): show size for downloaded models

* format

---------

Co-authored-by: diligentpig <845955+diligentpig@users.noreply.github.com>
Co-authored-by: CJ Pais <cj@cjpais.com>
2026-06-11 08:58:14 +08:00
田尻 愛斗 933a525099 docs: add overlay/pasting issue workaround for Linux to Known Issues (#1426) 2026-05-23 00:03:40 -04:00
Evgeny Khudoba 0392b7b6ae docs(readme): add Linux startup troubleshooting section (#1266)
Add a "Linux Startup Crashes or Instability" subsection to the
Troubleshooting section, with step-by-step instructions:
1. Install/reinstall gtk-layer-shell
2. Disable gtk-layer-shell via HANDY_NO_GTK_LAYER_SHELL env var
3. Disable WebKit DMA-BUF renderer
4. How to make workarounds permanent (.desktop file, shell profile)

Also add a cross-reference from the Linux Notes section.
2026-04-11 09:25:35 +08:00
ChaseC fdc8cb712d correct typo in library name, from 'transcription-rs' to 'transcribe-rs' (#1260) 2026-04-09 15:51:49 +08:00
Emma Watson b76febdbbf docs: add release signature verification steps (#1178) 2026-03-28 19:06:14 +08:00
Mattia Colombo 8836d45532 Update Raycast integration description (#1100)
Updated the README to include language switching in the Raycast integration description.
2026-03-19 20:53:17 +08:00
Mattia Colombo 1a95c9c471 docs: add Raycast extension to Integrations section (#1064) 2026-03-19 20:04:17 +08:00
CJ Pais 184bdf4586 Update README.md 2026-03-15 23:12:14 +08:00
Tom Plant 2a528d8d10 Add Windows installation with winget to README (#1046)
https://github.com/microsoft/winget-pkgs/pull/336309#issuecomment-4054883712
2026-03-15 15:29:21 +08:00
Avish JhaandCJ Pais 01b8b05bdc docs: add note in readme about homebrew install (#1011)
* docs: add note about brew install not being directly maintained by devs

Added note about Homebrew cask maintenance and updated installation steps.

* fix

---------

Co-authored-by: CJ Pais <cj@cjpais.com>
2026-03-12 20:33:01 +08:00
CJ Pais f705a4948d Update README.md for improved application description
Revised description for clarity and privacy emphasis.
2026-02-24 23:31:51 +08:00
CJ Pais a83228030f Add BoltAI as a sponsor! 2026-02-24 16:02:46 +08:00
CJ Pais 551ad6c414 Add BoltAI as a sponsor! 2026-02-24 15:35:46 +08:00
133c50c6d4 feat: add CLI parameters for linux (#792)
* feat: add CLI parameters for Linux (--start-hidden, --no-tray, --toggle-transcription, --debug)

Add command-line interface using clap for better Linux desktop integration:
- --start-hidden: launch without showing the main window
- --no-tray: launch without system tray icon (closing window quits app)
- --toggle-transcription: toggle recording on/off on a running instance
  via tauri_plugin_single_instance
- --debug: enable debug mode with Trace-level logging (runtime-only)

Extract toggle_transcription() from signal_handle.rs into a reusable
function shared between SIGUSR2 handler and CLI single-instance callback.

Update CLAUDE.md and README.md with CLI documentation including setup
instructions for GNOME, KDE Plasma, Sway/i3, and Hyprland.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* add cancel and post processs

* cleanup

* format

* docs

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: CJ Pais <cj@cjpais.com>
2026-02-17 12:48:43 +08:00
203ba1dbc2 feat(linux): add SIGUSR1 signal for transcribe_with_post_process (#759)
* feat(linux): add SIGUSR1 signal for transcribe_with_post_process

Register SIGUSR1 alongside SIGUSR2 in the signal handler so Linux
users can trigger transcription with post-processing via system
signals (e.g. `pkill -SIGUSR1 -x handy`). This mirrors the existing
SIGUSR2 toggle pattern and maps to the `transcribe_with_post_process`
action already present in ACTION_MAP.

Closes #758

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>

* readme

* format

---------

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Co-authored-by: CJ Pais <cj@cjpais.com>
2026-02-16 22:41:33 +08:00
CJ Pais f10cdd3d17 format 2026-02-09 22:07:53 +08:00
Martin Kleine 306bcb0d52 docs: clarify Linux gtk-layer-shell runtime requirements (#748) 2026-02-09 16:12:00 +08:00
HossandCJ Pais a4999164ae feat(models): add opt-in custom Whisper model discovery (#622)
* feat(models): auto-discover custom Whisper models in models directory

Enable automatic discovery of custom GGML-format Whisper models (.bin files)
placed in the models directory, so users don't need to modify source code
to use their own fine-tuned models.

Backend changes:
- Add discover_custom_whisper_models() to scan for .bin files
- Generate display names from filenames (e.g., "my-model" → "My Model")
- Skip predefined model filenames to avoid duplicates
- Add 3 unit tests for discovery logic

Frontend changes:
- Split model dropdown into 3 sections: Custom, Downloaded, Downloadable
- Add collapsible section for downloadable models to reduce clutter
- Add max-height with scroll for long model lists
- Add "Custom" badge for user-provided models

* feat(models): make custom Whisper model discovery opt-in

[why] Address maintainer concern about support burden from community
models. Custom models should be a power-user feature, not enabled by
default.

[how] Add custom_models_enabled setting (default: false) in Debug
settings. Discovery only runs when enabled. Models show "Not officially
supported" messaging. Documentation updated with enable steps.

* feat(models): add is_custom field and integrate custom models with new UI

[why]
PR review requested an explicit is_custom field instead of inferring
custom status from url === null. Custom models also need proper
integration with the new models settings page from PR #478.

[how]
- Add is_custom: bool to ModelInfo struct, set true on discovered models
- Change discover_custom_whisper_models signature from &PathBuf to &Path
- Use 0.0 sentinel scores so UI hides score bars for custom models
- Add "Custom Models" section to ModelsSettings with 3-way model split
- Show "Custom" badge in ModelCard and ModelDropdown
- Hide language/translation tags when supported_languages is empty
- Remove custom models from available_models on delete instead of
  just marking as not downloaded (they have no re-download URL)
- Update tests with new fields and assertions

* chore(i18n): add custom model translation keys to all locales

[why]
Custom model feature introduces 5 new translation keys that need
to be present in all 15 non-English locales for CI to pass.

[how]
Add English placeholder values for: customModelDescription,
modelSelector.custom, settings.models.customModels,
settings.debug.customModels.label, settings.debug.customModels.description

* fix(models): keep language filter visible when no models match

[why]
The language filter was inside a conditionally rendered section
that disappeared when no downloaded models matched the selected
language, leaving the user stuck with no way to change the filter.

[how]
Always render the "Your Models" header row with the language filter,
only conditionally render the model cards below it.

* docs: fix custom models section reference in README

Model selector → Models settings page.

* fix(models): apply custom models toggle immediately without restart

[why]
Two bugs reported in PR review: (1) app breaks on restart when a
custom model was selected and the toggle is disabled — selected_model
still points to the missing model, causing "Model not found" error.
(2) Custom models remain visible in the UI after toggle-off because
the in-memory model list is never updated and no event is emitted.

[how]
- Add remove_custom_models() and add_custom_models() to ModelManager
  for runtime mutation of the available_models mutex
- On disable: reset selected_model to empty if it's a custom model,
  then remove custom models from the in-memory list
- On enable: run discover_custom_whisper_models against the mutex
- Emit model-state-changed event so the frontend refreshes immediately

* chore(i18n): remove "restart required" from custom model descriptions

Toggle now takes effect immediately, so the restart sentence
is inaccurate. Updated all 16 locales and README instructions.

* fix(models): clear stale model selection on startup

[why]
If a custom model file is deleted from disk while it's the selected
model, the app gets stuck on "Loading..." forever on next launch
because the model ID is not in available_models but
auto_select_model_if_needed only checked for empty string.

[how]
Validate that selected_model exists in available_models before
accepting it. If not found, clear the selection so auto-select
picks a valid downloaded model.

* remove toggle and clean up

* format

---------

Co-authored-by: CJ Pais <cj@cjpais.com>
2026-02-09 10:15:45 +08:00
FeroandCJ Pais 7ee324a347 Add Homebrew cask install instructions (#705)
* Add Homebrew cask install option for macOS

* cask link

---------

Co-authored-by: CJ Pais <cj@cjpais.com>
2026-02-03 19:41:03 +08:00
johnmalek312 f7e73fc602 fix: direct typing (#493) 2025-12-31 03:19:29 -08:00
CJ Pais 81bccdea0b Update README.md 2025-12-09 21:44:52 +07:00
CJ Pais 4fcf0447b3 notes regarding linux (#387)
* notes regarding linux

* fix overlay not being default false on linux

* note
2025-11-28 09:37:49 +07:00
CJ Pais 70ec82285a format everything (#323) 2025-11-10 11:39:14 +08:00
CJ Pais db246dc248 Update README.md 2025-11-07 17:34:04 +08:00
CJ Pais 67dd15b6a0 improvements 2025-11-05 18:49:53 -08:00
CJ Pais b8af208ae4 update readme 2025-11-05 08:53:02 -08:00
CJ Pais 3860cdd9e0 Update README.md (#295) 2025-11-03 08:07:02 -08:00