Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Way to start and stop recordings using keybindings #24

Closed
samerickson opened this issue Apr 29, 2019 · 4 comments
Closed

Way to start and stop recordings using keybindings #24

samerickson opened this issue Apr 29, 2019 · 4 comments

Comments

@samerickson
Copy link

Hi there, I am using swaywm and as far as I can tell the way you stop the recording is by pressing ctrl+c but is there a way to start and stop the recording without the requirement of having a terminal open?

@ammen99
Copy link
Owner

ammen99 commented Apr 29, 2019

yes, you can just kill the process with SIGINT (which is exactly what ctrl-c does)

@mathroc
Copy link

mathroc commented May 21, 2019

here is something that works for me with sway:

bindsym Ctrl+Shift+Print exec wf-recorder -g "$$(~/bin/slurp)" -f ~/recording_$(date +"%Y-%m-%d_%H:%M:%S.mp4")
bindsym Ctrl+Shift+BackSpace exec killall -s SIGINT wf-recorder

@samerickson
Copy link
Author

Thanks for both of your help, I have been playing around with it. @mathroc thanks for your snippet including slurp.

mathroc added a commit to mathroc/wf-recorder that referenced this issue May 22, 2019
mathroc added a commit to mathroc/wf-recorder that referenced this issue May 22, 2019
@mathroc mathroc mentioned this issue May 22, 2019
@schauveau
Copy link

The timeout command, assuming that it is installed on your system, can also be useful to record for a given amount of time (or to limit the recording time to a reasonable value). For instance, to record during 10 minute:
timeout -s SIGINT 10m wf-recorder

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

No branches or pull requests

4 participants