14 lines
413 B
Bash
Executable File
14 lines
413 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
image_file="/tmp/$(basename $0).png"
|
|
rm -f $image_file
|
|
resolution=$(xdpyinfo | grep dimensions | awk '{print $2}')
|
|
#filters='noise=alls=10,scale=iw*.05:-1,scale=iw*20:-1:flags=neighbor'
|
|
filters='boxblur=20'
|
|
|
|
ffmpeg -y -loglevel 0 -s "$resolution" -f x11grab -i $DISPLAY -vframes 1 -vf "$filters" "$image_file"
|
|
DISPLAY=${DISPLAY:-:0.0} i3lock -t -i "$image_file"
|
|
chmod 777 $image_file
|
|
|
|
exit 0
|