diff --git a/hypr/hosts/chester.lua b/hypr/hosts/chester.lua index b65fdb3..f7bb10d 100644 --- a/hypr/hosts/chester.lua +++ b/hypr/hosts/chester.lua @@ -9,3 +9,13 @@ hl.monitor({ position = "0x0", 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 }) diff --git a/hypr/keybindings.lua b/hypr/keybindings.lua index a1e72ca..2f8804c 100644 --- a/hypr/keybindings.lua +++ b/hypr/keybindings.lua @@ -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("F2", hl.dsp.pass({ window = "class:^(com.obsproject.Studio)$" })) --- SUPER+SHIFT+F23 (the Copilot key emits this combo): hold-to-talk voice --- dictation via whisrs. 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 }) +-- Dictation binds live in the per-host files: the Copilot key (F23) only +-- exists on the laptop (hosts/chester.lua), and rutherford binds AltGr in +-- hosts/rutherford.lua.