Skip to content

Add pause/resume support to screen recording - #6470

Open
heyssh wants to merge 2 commits into
basecamp:quattrofrom
heyssh:add/screenrecord-pause-resume
Open

Add pause/resume support to screen recording#6470
heyssh wants to merge 2 commits into
basecamp:quattrofrom
heyssh:add/screenrecord-pause-resume

Conversation

@heyssh

@heyssh heyssh commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

gpu-screen-recorder natively supports pausing via SIGUSR2 (only in plain recording mode, not stream/replay). This wires that up as --pause-recording / --resume-recording, so recording can be paused in place and resumed into the same output file instead of always having to stop and start a new recording.

Bound to SUPER+ALT+P (Pause) / SUPER+ALT+R (Resume)

Tested manually: start recording, pause, wait, resume, stop — output is a single file with no gap segment, timestamp jumps cleanly across the paused interval."

screenrecording-2026-08-01_02-53-14.mp4

gpu-screen-recorder natively supports pausing via SIGUSR2 (only in
plain recording mode, not stream/replay). This wires that up as
--pause-recording / --resume-recording, so recording can be paused
in place and resumed into the same output file instead of always
having to stop and start a new recording.

Bound to SUPER+ALT+P / SUPER+ALT+R
Copilot AI review requested due to automatic review settings July 31, 2026 23:37

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds in-place pause/resume controls for active screen recordings using SIGUSR2.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Changes:

  • Adds pause/resume CLI options and state tracking.
  • Adds SUPER+ALT+P/R shortcuts.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated no comments.

File Description
bin/omarchy-capture-screenrecording Implements pause/resume signaling and state.
default/hypr/bindings/utilities.lua Adds pause/resume keybindings.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

- Clear a leftover  before deciding what to do next, so a
  fresh recording is never mistaken for one that's already paused
  (this could happen if a previous recording crashed or was killed
  outside this script). Left uncaught, a --resume-recording call
  against that state would send SIGUSR2 into a live, unpaused
  process and actually pause it.

- Wrap pause_screenrecording/resume_screenrecording in a flock so two
  overlapping invocations (e.g. a hotkey firing twice) can't both
  send the SIGUSR2 toggle at once and invert each other's result.

- Notify when there's nothing to resume, matching pause's existing
  behavior instead of failing silently.
Copilot AI review requested due to automatic review settings August 1, 2026 06:49

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 2 changed files in this pull request and generated no new comments.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants