diff --git a/README.md b/README.md index 272d254..3be89f6 100644 --- a/README.md +++ b/README.md @@ -110,7 +110,8 @@ You also need to install all the dependencies: - pipewire-alsa (whisrs captures audio via raw ALSA; without it the default PCM is the headset-jack mic, which is silent when nothing is plugged in) - a Vulkan driver for your GPU (vulkan-intel + vulkan-icd-loader on Arch) -- whisrs (hold-to-talk voice dictation on the Copilot key; on Arch install +- whisrs (hold-to-talk voice dictation on SUPER+SHIFT+F23, which is what the + Copilot key on newer laptops sends; on Arch install whisrs-git from the AUR). Rebuild it locally with -march=native and the vulkan cargo feature, otherwise decoding is too slow; on this machine the rebuild tooling lives in ~/Projects/whisrs-local-build diff --git a/hypr/keybindings.lua b/hypr/keybindings.lua index 7469d95..753a441 100644 --- a/hypr/keybindings.lua +++ b/hypr/keybindings.lua @@ -37,8 +37,8 @@ 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)$" })) --- Copilot key (sends SUPER+SHIFT+F23): hold-to-talk voice dictation via whisrs --- press = start recording, release = stop and transcribe. The scripts check the +-- 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 }) diff --git a/hypr/shortcuts.txt b/hypr/shortcuts.txt index 69d0442..03fd834 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 │ -│ Copilot key Voice dictation │ +│ SUPER + SHIFT + F23 Voice dictation │ └────────────────────────────────────────────────────┘ │ SUPER + P Pseudo split (dwindle) │ ┌───────────────── Focus Movement ───────────────────┐ │ SUPER + J Toggle split (dwindle) │ │ SUPER + ←/→/↑/↓ Move focus │ │ SUPER + F Toggle fullscreen │