From 1e90371cd8bc52e8b43229c84f11191454c77307 Mon Sep 17 00:00:00 2001 From: Jeena Date: Fri, 18 Sep 2026 06:54:48 +0900 Subject: [PATCH] hypr: make Calc the single hold-to-talk key on rutherford MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Calc is one key and not a modifier, so nothing is held while whisrs injects text — the held-AltGr problems (dropped long-hold releases, first phrase swallowed by the TUI) don't apply. Pause worked too but needs Fn+F12, two keys for a hold button. Cheatsheet lists Calc. --- hypr/hosts/rutherford.lua | 20 ++++++++++---------- hypr/shortcuts.txt | 2 +- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/hypr/hosts/rutherford.lua b/hypr/hosts/rutherford.lua index 632db89..a2f2c33 100644 --- a/hypr/hosts/rutherford.lua +++ b/hypr/hosts/rutherford.lua @@ -13,13 +13,13 @@ hl.monitor({ -- starts, release stops; the scripts guard the daemon state so stray toggles -- (key repeat, missed release) can't invert it (see keybindings.lua). -- Kept per-host so machines that use AltGr for characters aren't affected. --- Bare Pause (Fn+F12 on the TypeMatrix) is the hold-to-talk dictation key --- here. It was on bare AltGr before, but a held AltGr is itself a modifier: --- Hyprland drops its long-hold release events, and the modifier state made --- the first injected phrase disappear from the target TUI. Pause is not a --- modifier, so nothing is held while whisrs types. Press starts, release --- stops; the scripts guard the daemon state so stray toggles (key repeat, --- missed release) can't invert it (see keybindings.lua). Kept per-host so --- machines that use Pause aren't affected. -hl.bind("Pause", hl.dsp.exec_cmd("~/.config/hypr/scripts/whisrs-hold-start.sh")) -hl.bind("Pause", hl.dsp.exec_cmd("~/.config/hypr/scripts/whisrs-hold-stop.sh"), { release = true }) +-- Calc is rutherford's hold-to-talk dictation key: a single non-modifier +-- key, so nothing is held while whisrs injects text. AltGr failed both ways: +-- Hyprland drops long-hold release events for modifier keys, and the first +-- phrase injected while AltGr was held never reached the target TUI. Pause +-- (Fn+F12) works but needs two keys for a hold button, so Calc won. +-- Press starts, release stops; the scripts guard the daemon state so stray +-- toggles (key repeat, missed release) can't invert it (see keybindings.lua). +-- Kept per-host so machines that use Calc aren't affected. +hl.bind("XF86Calculator", hl.dsp.exec_cmd("~/.config/hypr/scripts/whisrs-hold-start.sh")) +hl.bind("XF86Calculator", hl.dsp.exec_cmd("~/.config/hypr/scripts/whisrs-hold-stop.sh"), { release = true }) diff --git a/hypr/shortcuts.txt b/hypr/shortcuts.txt index 63a5e18..dc2b8ea 100644 --- a/hypr/shortcuts.txt +++ b/hypr/shortcuts.txt @@ -2,7 +2,7 @@ │ SUPER + T Open terminal │ │ SUPER + W Close focused window │ │ SUPER + B Open browser │ │ SUPER + M Exit Hyprland │ │ SUPER + E Open file manager │ │ SUPER + V Toggle floating │ -│ SUPER+SHIFT+F23 / Pause Voice dictation │ +│ SUPER+SHIFT+F23 / Pause / Calc Voice dictation │ └────────────────────────────────────────────────────┘ │ SUPER + P Pseudo split (dwindle) │ ┌───────────────── Focus Movement ───────────────────┐ │ SUPER + J Toggle split (dwindle) │ │ SUPER + ←/→/↑/↓ Move focus │ │ SUPER + F Toggle fullscreen │