Skip to content

Conversation

iamobservable
Copy link
Contributor

@iamobservable iamobservable commented Sep 24, 2025

Adding this PR as a fix for #1858

The identified issue is when using the hyprctl bindings from default/hypr/bindings/utilities.conf

bindd = ALT, PRINT, Screen record a region, exec, omarchy-cmd-screenrecord region
bindd = ALT SHIFT, PRINT, Screen record a region with audio, exec, omarchy-cmd-screenrecord region audio
bindd = CTRL ALT, PRINT, Screen record display, exec, omarchy-cmd-screenrecord output
bindd = CTRL ALT SHIFT, PRINT, Screen record display with audio, exec, omarchy-cmd-screenrecord output audio

The call to omarchy-cmd-screenrecord differentiates output versus region as the first parameter used. A conditional is used to identify if the bash script caller is expecting a region or a display output for screen recording. The region handled this as a geometry, first calling slurp, and passing it to wf-recorder or wf-screenrec. The display was calling wf-recorder or wf-screenrec without any geometry flags which had an unexpected response, always attempting to capture the region of the screen allowing no way to capture solely the display.

Details for reference

wf-recorder usage

  • wf-recorder -g "$(slurp)" -- does not include the -o that is needed

slurp usage reference

  • note the slurp -o

@iamobservable iamobservable force-pushed the iamobservable/bug/screen-recording-no-longer-works-after-updating branch 3 times, most recently from fdd9de8 to f6109c7 Compare September 24, 2025 21:18
@amanat361
Copy link

Thank you! Hope this gets merged asap

@iamobservable
Copy link
Contributor Author

Thank you! Hope this gets merged asap

You are welcome and glad to help!

Copy link
Collaborator

@ryanrhughes ryanrhughes left a comment

Choose a reason for hiding this comment

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

Can we remove the unnecessary comments here?

@iamobservable
Copy link
Contributor Author

Can we remove the unnecessary comments here?

Absolutely. I saw a few other comments already within the file and was not sure of the comment/documentation necessary, so I weighed on adding them.

The previous code did not identify the output display correctly,
leading to wf-recorder asking the user to select the region when the
user requested the display output to be selected.

With this change the bash script will use slurp with the -o flag to
identify the display output.

This has not been tested with wl-screenrec as no change has been made to
its call signature in omarchy-cmd-screenrecord and the wl-screenrec
binary is not included in the default omarchy installation.
@iamobservable iamobservable force-pushed the iamobservable/bug/screen-recording-no-longer-works-after-updating branch from f6109c7 to d4b0ba5 Compare September 26, 2025 00:37
@iamobservable
Copy link
Contributor Author

Can we remove the unnecessary comments here?

Updated!

@ryanrhughes ryanrhughes added this to the 3.1 milestone Sep 26, 2025
@ryanrhughes ryanrhughes merged commit 8e5b599 into basecamp:master Sep 28, 2025
@iamobservable iamobservable deleted the iamobservable/bug/screen-recording-no-longer-works-after-updating branch September 29, 2025 02:31
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.

3 participants