hypr-dotfiles/hypr/hosts/chester.lua
Jeena 04371578b6 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.
2026-09-18 07:04:32 +09:00

21 lines
1.1 KiB
Lua

-- Host-specific overrides: Chester (laptop, 2880x1800 internal display)
-- Loaded automatically by hyprland.lua via hostname detection.
-- Keeps the internal panel at 1.5x scaling (virtual 1920x1200).
-- Laptop internal display — explicit & stable
hl.monitor({
output = "eDP-1",
mode = "2880x1800@60",
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 })