Repository navigation
feat(desktop): add screenrec window/region recorder with waybar indicator - #12
Merged
Merged
Conversation
…ator Ctrl+Shift+5 runs screenrec: click a window or drag a region (slurp), gpu-screen-recorder records it via NVENC to ~/Videos/Recordings; press again to stop. A waybar module shows a red dot and elapsed time while recording and stops it on click.
There was a problem hiding this comment.
🟡 Changes recommended
Two active issues remain: the Waybar module does not hide its empty idle output, and screen-recording filenames can collide when recordings start within the same second.
1 open issue
What changed in this PR
Adds a Hyprland desktop screen-recording workflow using gpu-screen-recorder, with window/region selection, audio capture, a keyboard toggle, and Waybar status feedback.
Changes:
- Adds the
screenrectoggle and status script, saving recordings under~/Videos/Recordings. - Adds the
Ctrl+Shift+5Hyprland binding and Waybar recording indicator. - Adds recording indicator styling and
gpu-screen-recorderto desktop Arch packages.
This pull request requires changes.
| File | Summary |
|---|---|
dot_local/bin/executable_screenrec |
Selects a window or region, starts and stops recordings, manages output files, and emits Waybar JSON status. |
dot_config/waybar/style.css.tmpl |
Styles the active recording indicator in red. |
dot_config/waybar/config.jsonc.tmpl |
Registers the polling screen-recording module and click-to-stop action. |
dot_config/hypr/hyprland.lua.tmpl |
Adds the Ctrl+Shift+5 screen-recording keybinding. |
.chezmoidata/packages.yaml |
Adds gpu-screen-recorder to desktop Arch packages. |
Review effort: Lite
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.

Adds
screenrec, a toggle for recording a window or region on Hyprland.gpu-screen-recorderrecords it with NVENC at 60 fps with desktop audio (AAC) to~/Videos/Recordings. Press again to stop.custom/screenrec: hidden when idle; while recording shows a red dot and elapsed time, click to stop. Pollsscreenrec statusevery second.gpu-screen-recorderadded to the Arch package list.The region is fixed at selection time, so moving the window while recording doesn't follow it.
Tested on the desktop: region recording produced h264 + AAC at the selected size; the toggle stops it cleanly; the waybar status JSON is correct while recording and idle; the bind loads after
hyprctl reload../test/test-dotfiles.shpasses.