Add pause/resume support to screen recording - #6470
Open
heyssh wants to merge 2 commits into
Open
Conversation
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
Contributor
There was a problem hiding this comment.
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/Rshortcuts.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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