Files
nixos-config/hosts/desktop/config/hypr/dms/binds-user.lua
T
kiskaadee ac0e2784df feat(wm): implement declarative screen recording and screenshot suite
- Add `record.sh`, a stateful recording utility using `wf-recorder` and `slurp`, supporting area, window, output, and full-screen captures.
- Integrate `grimblast` into the binding layer for high-fidelity screenshots.
- Declaratively mount recording scripts and update Hyprland keybindings via `binds-user.lua`.
- Remap clipboard manager toggle to `SUPER + C` to accommodate the new video recording shortcut suite.
- Provision `grimblast`, `obs-studio`, and `wf-recorder` via host-specific home packages.
2026-06-25 01:26:38 -05:00

17 lines
980 B
Lua

-- Optional per-user keybind overrides (managed by DMS). Loaded after default binds.
-- Screen screenshots
hl.bind("SUPER + S", hl.dsp.exec_cmd("grimblast --notify copysave area"))
hl.bind("SUPER + SHIFT + S", hl.dsp.exec_cmd("grimblast --notify copysave active"))
hl.bind("SUPER + CTRL + S", hl.dsp.exec_cmd("grimblast --notify copysave output"))
hl.bind("SUPER + SHIFT + CTRL + S", hl.dsp.exec_cmd("grimblast --notify copysave screen"))
-- Screen video recordings
hl.bind("SUPER + V", hl.dsp.exec_cmd("~/.config/hypr/scripts/record.sh area"))
hl.bind("SUPER + SHIFT + V", hl.dsp.exec_cmd("~/.config/hypr/scripts/record.sh window"))
hl.bind("SUPER + CTRL + V", hl.dsp.exec_cmd("~/.config/hypr/scripts/record.sh output"))
hl.bind("SUPER + SHIFT + CTRL + V", hl.dsp.exec_cmd("~/.config/hypr/scripts/record.sh screen"))
-- Rebind clipboard manager toggle since SUPER + V is now used for video recording area
hl.bind("SUPER + C", hl.dsp.exec_cmd("dms ipc call clipboard toggle"))