awesome-wm-widgets/run-shell/scratch_6.sh

13 lines
394 B
Bash
Raw Normal View History

2018-11-05 23:04:47 +01:00
#!/usr/bin/env bash
2018-11-09 17:29:35 +01:00
#RES=$(xrandr --current | grep '*' | uniq | awk '{print $1}')
2018-11-05 23:04:47 +01:00
RNDM=$(uuidgen)
2018-11-09 17:29:35 +01:00
IMAGE="/tmp/i3lock-$RNDM.png"
2018-11-05 23:04:47 +01:00
2018-12-20 02:41:19 +01:00
## blur
2018-11-09 17:29:35 +01:00
#ffmpeg -loglevel panic -f x11grab -video_size 1920x1060 -y -i :0.0+0,20 -filter_complex "boxblur=9" -vframes 1 $IMAGE
2018-12-20 02:41:19 +01:00
## pixelate
2018-11-09 17:29:35 +01:00
ffmpeg -loglevel panic -f x11grab -video_size 1920x1060 -y -i :0.0+$1,20 -vf frei0r=pixeliz0r -vframes 1 $IMAGE
2018-12-20 02:41:19 +01:00
echo $RNDM