From e77638e8834991d387ce74da43d86d60665d7528 Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Fri, 21 Feb 2020 01:21:48 +0100 Subject: grimshot: Use hw encoding with wf-recorder also adds bin/wfez that has the args for it preset --- bin/grimshot | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'bin/grimshot') diff --git a/bin/grimshot b/bin/grimshot index 819e7c5..7af270e 100755 --- a/bin/grimshot +++ b/bin/grimshot @@ -76,10 +76,11 @@ takeScreenshot() { recordScreen() { FILE=$1 GEOM=$2 + REC_OPTS="-c h264_vaapi -d /dev/dri/renderD128" if [ -z "$GEOM" ]; then - wf-recorder -f "$FILE" || die "Unable to invoke wf-recorder" + wf-recorder ${REC_OPTS} -f "$FILE" || die "Unable to invoke wf-recorder" else - wf-recorder -g "$GEOM" -f "$FILE" || die "Unable to invoke wf-recorder" + wf-recorder ${REC_OPTS} -g "$GEOM" -f "$FILE" || die "Unable to invoke wf-recorder" fi } -- cgit 1.4.1