Skip to content

Overwrite existing recording without asking #174

@apiraino

Description

@apiraino

Hi, I've upgraded to wf-recorder 0.3.0 and now I can't overwrite anymore an existing recording.

I understand the use case of #115 but I have the opposite need :) In addition since I use Sway and often have two monitors attached I script wf-recorder as follows:

# On multi-monitor setup, retrieve the one with focus (ex. "DP-1")
output_name=$(swaymsg -t get_outputs | jq -r '.[] | select(.focused ).name')
output_id=$(
    false | wf-recorder 2>&1 | grep $output_name | cut -d"." -f 1
)
echo -n $output_id | wf-recorder -f ~/tmp/out.mp4

Now I can't do this anymore. Is there a way to also add a yes somewhere to skip the overwrite prompt? Or an additional patch to add a --force parameter would be needed?

As a workaround I can record to ~/tmp/`date +%Y%m%d-%H%M%S`-out.mp4 ...

Thanks for wf-recorder!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions