tileos-settings-sway/usr/share/sway/scripts/swaylock.sh
Alexander Oakman 2be7224e32 Improve the lock screen command
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.
2024-08-23 21:59:49 +03:00

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