commit 85847b2dd6e59b9e080f8c76e680f5ac7ff25008
parent bbc74b7323db7cf09558374f84fad074d7d7c339
Author: Anders Damsgaard <anders@adamsgaard.dk>
Date: Wed, 4 Nov 2020 11:30:21 +0100
screenrecord: don't grep into awk
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.local/bin/screenrecord b/.local/bin/screenrecord
@@ -7,7 +7,7 @@ startrecording() {
ffmpeg -y \
-f x11grab \
-framerate 60 \
- -s "$(xdpyinfo | grep dimensions | awk '{print $2}')" \
+ -s "$(xdpyinfo | awk '/dimensions/ {print $2}')" \
-i $DISPLAY \
-thread_queue_size 2048 \
-f sndio -i default \