17 lines
358 B
Bash
Executable file
17 lines
358 B
Bash
Executable file
#!/bin/bash
|
|
|
|
# This script takes a screenshot of current output and adds a blur and vignette to it
|
|
|
|
cd /tmp
|
|
grim screen.png
|
|
|
|
# Delete existing image
|
|
rm screen-out.png
|
|
|
|
#Adds a blur and vignette
|
|
ffmpeg -i screen.png -vf "gblur=sigma=10, vignette=PI/5" -c:a copy screen-out.png
|
|
|
|
#Uses output image with Swaylock
|
|
swaylock \
|
|
--image screen-out.png \
|
|
--daemonize
|