From 293916e80faa4705b2f67ef98589d73e4d961ac2 Mon Sep 17 00:00:00 2001 From: streetturtle Date: Wed, 19 Dec 2018 20:41:19 -0500 Subject: remove comments --- run-shell/scratch_6.sh | 33 +++------------------------------ 1 file changed, 3 insertions(+), 30 deletions(-) (limited to 'run-shell') diff --git a/run-shell/scratch_6.sh b/run-shell/scratch_6.sh index 1504a60..7edad8c 100755 --- a/run-shell/scratch_6.sh +++ b/run-shell/scratch_6.sh @@ -1,40 +1,13 @@ #!/usr/bin/env bash -#IMAGE=/tmp/i3lock.png -#SCREENSHOT="scrot -u $IMAGE" # 0.46s -# -## Alternate screenshot method with imagemagick. NOTE: it is much slower -## SCREENSHOT="import -window root $IMAGE" # 1.35s -# -## Here are some imagemagick blur types -## Uncomment one to use, if you have multiple, the last one will be used -# -## All options are here: http://www.imagemagick.org/Usage/blur/#blur_args -##BLURTYPE="0x5" # 7.52s -##BLURTYPE="0x2" # 4.39s -##BLURTYPE="5x2" # 3.80s -#BLURTYPE="2x8" # 2.90s -##BLURTYPE="2x3" # 2.92s -# -## Get the screenshot, add the blur and lock the screen with it -#$SCREENSHOT -#convert $IMAGE -blur $BLURTYPE $IMAGE -#echo 'done' - - -# -------------------------- - #RES=$(xrandr --current | grep '*' | uniq | awk '{print $1}') RNDM=$(uuidgen) IMAGE="/tmp/i3lock-$RNDM.png" +## blur #ffmpeg -loglevel panic -f x11grab -video_size 1920x1060 -y -i :0.0+0,20 -filter_complex "boxblur=9" -vframes 1 $IMAGE -#ffmpeg -loglevel panic -f x11grab -video_size 1920x1060 -y -i :0.0+0,20 -vf frei0r=pixeliz0r -vframes 1 $IMAGE +## pixelate ffmpeg -loglevel panic -f x11grab -video_size 1920x1060 -y -i :0.0+$1,20 -vf frei0r=pixeliz0r -vframes 1 $IMAGE -#ffmpeg -loglevel panic -f x11grab -video_size 1920x1060 -y -i :0.0+0,20 -filter_complex "boxblur=9" -vframes 1 "/tmp/i3lock$(uuidgen).png" - -echo $RNDM -#lock screen -#ffmpeg -loglevel panic -f x11grab -video_size $(xdpyinfo | grep dimensions | sed -r 's/^[^0-9]*([0-9]+x[0-9]+).*$/\1/') -y -i :0.0+$1,20 -vf frei0r=pixeliz0r -vframes 1 /tmp/test.png ; i3lock -i /tmp/test.png +echo $RNDM \ No newline at end of file -- cgit v1.2.3