Files
nixos-config/hosts/desktop/config/hypr/dms/binds-user.lua
T
kiskaadee ce5e0359c9 feat(wm): implement dynamic system audio capture for screen recording
- Simplify screen recording modes by removing the "all-creen" capture
- Introduce dynamic audio source resolution using `wpctl` to target the
  active Pipewire output monitor
- Refactor keybindings to use `CTRL` as a modifier for system audio
  toggle:
  - `SUPER + W` series for video-only capture.
  - `SUPER + Ctrl + W` series for video capture with system audio
    loopback
- Harden the recording script to handle audio device resolution failures
  gracefully.
2026-06-25 14:02:58 -05:00

14 lines
849 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 (SUPER + W series)
hl.bind("SUPER + W", hl.dsp.exec_cmd("~/.config/hypr/scripts/record.sh area"))
hl.bind("SUPER + SHIFT + W", hl.dsp.exec_cmd("~/.config/hypr/scripts/record.sh output"))
hl.bind("SUPER + CTRL + W", hl.dsp.exec_cmd("~/.config/hypr/scripts/record.sh area audio"))
hl.bind("SUPER + SHIFT + CTRL + W", hl.dsp.exec_cmd("~/.config/hypr/scripts/record.sh output audio"))