From f27c47e5051334d8817bd276ea2566c089c1c9fb Mon Sep 17 00:00:00 2001 From: Chase Taylor <11805686+dotaxis@users.noreply.github.com> Date: Mon, 17 Mar 2025 20:06:46 -0600 Subject: [PATCH] readme: add bc to required dependencies (#830) * Update README.md Add `bc` to required dependencies * Replace bc with awk --------- Co-authored-by: Jas Singh --- scripts/screen_record.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/screen_record.sh b/scripts/screen_record.sh index 869bfc5..f203689 100755 --- a/scripts/screen_record.sh +++ b/scripts/screen_record.sh @@ -30,8 +30,8 @@ startRecording() { w=$(echo $monitor_info | jq -r '.width') h=$(echo $monitor_info | jq -r '.height') scale=$(echo $monitor_info | jq -r '.scale') - scaled_width=$(echo "${w} / ${scale}" | bc) - scaled_height=$(echo "${h} / ${scale}" | bc) + scaled_width=$(awk "BEGIN {print $w / $scale}") + scaled_height=$(awk "BEGIN {print $h / $scale}") x=$(echo $monitor_info | jq -r '.x') y=$(echo $monitor_info | jq -r '.y') wf-recorder $WF_RECORDER_OPTS --geometry "${x},${y} ${scaled_width}x${scaled_height}" --file "$outputPath" &