summaryrefslogtreecommitdiff
path: root/run-shell/scratch_6.sh
diff options
context:
space:
mode:
authorPavel Makhov <pmakhov@touchtunes.com>2018-11-09 11:29:35 -0500
committerPavel Makhov <pmakhov@touchtunes.com>2018-11-09 11:29:35 -0500
commit1eefac87faefa22b0d3941a9fd4c76010688f59e (patch)
tree7eb712d54a5d6bc58f38c5aceef38963b2c94693 /run-shell/scratch_6.sh
parent73ff9974c93ed4ec594c895e8abe7c63ecf54755 (diff)
improvements for run shell
Diffstat (limited to 'run-shell/scratch_6.sh')
-rwxr-xr-xrun-shell/scratch_6.sh13
1 files changed, 9 insertions, 4 deletions
diff --git a/run-shell/scratch_6.sh b/run-shell/scratch_6.sh
index be30061..1504a60 100755
--- a/run-shell/scratch_6.sh
+++ b/run-shell/scratch_6.sh
@@ -24,12 +24,17 @@
# --------------------------
-RES=$(xrandr --current | grep '*' | uniq | awk '{print $1}')
+#RES=$(xrandr --current | grep '*' | uniq | awk '{print $1}')
RNDM=$(uuidgen)
-IMAGE="/tmp/i3lock$RNDM.png"
+IMAGE="/tmp/i3lock-$RNDM.png"
-ffmpeg -loglevel panic -f x11grab -video_size 1920x1060 -grab_y 20 -y -i :0.0+0,20 -filter_complex "boxblur=9" -vframes 1 $IMAGE
-#ffmpeg -loglevel panic -f x11grab -video_size 1920x1060 -grab_y 20 -y -i :0.0+0,20 -filter_complex "boxblur=9" -vframes 1 "/tmp/i3lock$(uuidgen).png"
+#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
+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