diff --git a/hypr/hosts/rutherford.lua b/hypr/hosts/rutherford.lua index 9b8097b..3dcc928 100644 --- a/hypr/hosts/rutherford.lua +++ b/hypr/hosts/rutherford.lua @@ -7,3 +7,20 @@ hl.monitor({ position = "0x0", scale = 1, }) + +-- Bare AltGr (right Alt on the TypeMatrix) is the hold-to-talk dictation key +-- here. Raw keycode 108 (KEY_RIGHTALT) so it matches in every kb group. 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 AltGr for characters aren't affected. +-- Bare AltGr (right Alt on the TypeMatrix) is the hold-to-talk dictation key +-- here. Alt_R is the keysym right Alt produces under us,dvorak (pc's RALT); +-- the se group remaps it to ISO_Level3_Shift for AltGr combos and is left +-- alone on purpose. Press = start (modmask 0: Hyprland excludes the pressed +-- key's own modifier), release = stop (modmask ALT: Alt_R is itself Mod1 and +-- is still active while its release event is processed, so the release bind +-- must carry ALT to match). 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 aren't affected. +hl.bind("Alt_R", hl.dsp.exec_cmd("~/.config/hypr/scripts/whisrs-hold-start.sh")) +hl.bind("ALT + Alt_R", hl.dsp.exec_cmd("~/.config/hypr/scripts/whisrs-hold-stop.sh"), { release = true })