The RTX 3060 sits idle otherwise and its driver reserves ~1.5 GiB of VRAM that the llama-server on the same machine wants. The monitor is plugged into the iGPU anyway, so pin Aquamarine to card0 on this host only — machines with different GPU layouts must not inherit this.
32 lines
1.7 KiB
Lua
32 lines
1.7 KiB
Lua
-- Host-specific overrides: Rutherford (desktop PC)
|
|
-- Loaded automatically by hyprland.lua via hostname detection.
|
|
|
|
-- Render the desktop on the Intel iGPU (card0), not the RTX 3060 (card1).
|
|
-- Rutherford-only: keeps ~1.5 GiB VRAM free on the dGPU for the
|
|
-- llama-server. card0 is also where the monitor DP-1 is plugged in. Do NOT
|
|
-- set this on machines with different GPU layouts (see hyprland.lua note).
|
|
hl.env("AQ_DRM_DEVICES", "/dev/dri/card0")
|
|
|
|
hl.monitor({
|
|
output = "DP-1",
|
|
mode = "2560x1440@74.97",
|
|
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.
|
|
-- AltGr is rutherford's hold-to-talk dictation key. With dictation emitted
|
|
-- as one batch, nothing is typed while the key is held, so its modifier
|
|
-- can't interfere with injection. Known quirk: Hyprland occasionally drops
|
|
-- long-hold release events for modifier keys, in which case the recording
|
|
-- runs until the 6s silence auto-stop and the text lands a few seconds
|
|
-- late. 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 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 })
|