
Running a screensaver is a very important security feature. It is necessary that it always works and does not depend on the state of the user's directories, so the screensaver run-script should be placed in the system directory. However, the locking process remains customizable because the user script can be used too.
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
|