hypr: move the whisrs dictation binds into the per-host files

The Copilot key only exists on the laptop and rutherford binds its own
AltGr per-host, so the shared keybindings file no longer carries
machine-specific dictation keys; Chester's F23 and Pause binds live
with Chester's config now.
This commit is contained in:
Jeena 2026-09-18 07:04:32 +09:00
parent 16a618bb3c
commit 04371578b6
2 changed files with 13 additions and 9 deletions

View file

@ -9,3 +9,13 @@ hl.monitor({
position = "0x0", position = "0x0",
scale = 1.5, scale = 1.5,
}) })
-- SUPER+SHIFT+F23 (the Copilot key emits this combo): hold-to-talk voice
-- dictation via whisrs. Press = start, release = stop. The scripts check the
-- daemon state so stray toggles (key repeat, missed release) can't invert it.
hl.bind("SUPER + SHIFT + F23", hl.dsp.exec_cmd("~/.config/hypr/scripts/whisrs-hold-start.sh"))
hl.bind("SUPER + SHIFT + F23", hl.dsp.exec_cmd("~/.config/hypr/scripts/whisrs-hold-stop.sh"), { release = true })
-- Pause is the alternate dictation key: Fn+F12 on the TypeMatrix 2030, and a
-- common spare key on laptops without a Copilot key
hl.bind("SUPER + SHIFT + Pause", hl.dsp.exec_cmd("~/.config/hypr/scripts/whisrs-hold-start.sh"))
hl.bind("SUPER + SHIFT + Pause", hl.dsp.exec_cmd("~/.config/hypr/scripts/whisrs-hold-stop.sh"), { release = true })

View file

@ -37,12 +37,6 @@ hl.bind(P.mainMod .. " + ALT + TAB", hl.dsp.pass({ window = "class:^(com.obsproj
hl.bind("F1", hl.dsp.pass({ window = "class:^(com.obsproject.Studio)$" })) hl.bind("F1", hl.dsp.pass({ window = "class:^(com.obsproject.Studio)$" }))
hl.bind("F2", hl.dsp.pass({ window = "class:^(com.obsproject.Studio)$" })) hl.bind("F2", hl.dsp.pass({ window = "class:^(com.obsproject.Studio)$" }))
-- SUPER+SHIFT+F23 (the Copilot key emits this combo): hold-to-talk voice -- Dictation binds live in the per-host files: the Copilot key (F23) only
-- dictation via whisrs. The scripts check the -- exists on the laptop (hosts/chester.lua), and rutherford binds AltGr in
-- daemon state so stray toggles (key repeat, missed release) can't invert it. -- hosts/rutherford.lua.
hl.bind("SUPER + SHIFT + F23", hl.dsp.exec_cmd("~/.config/hypr/scripts/whisrs-hold-start.sh"))
hl.bind("SUPER + SHIFT + F23", hl.dsp.exec_cmd("~/.config/hypr/scripts/whisrs-hold-stop.sh"), { release = true })
-- Pause is the alternate dictation key: Fn+F12 on the TypeMatrix 2030, and a
-- common spare key on laptops without a Copilot key
hl.bind("SUPER + SHIFT + Pause", hl.dsp.exec_cmd("~/.config/hypr/scripts/whisrs-hold-start.sh"))
hl.bind("SUPER + SHIFT + Pause", hl.dsp.exec_cmd("~/.config/hypr/scripts/whisrs-hold-stop.sh"), { release = true })