rj1
log | files | refs
commit dfce653d4a47e4346f266ee27a2d7a31ce72a78b
parent ccbea2d61b4ab3673f368a0502f13be747c6a99d
author: rj1 <[email protected]>
date:   Sun, 28 Apr 2024 13:16:21 -0600

screen-lock: using ffmpeg blur

Diffstat:
Mbin/screen-lock | 12+++---------
1 file changed, 3 insertions(+), 9 deletions(-)

diff --git a/bin/screen-lock b/bin/screen-lock @@ -1,16 +1,10 @@ #!/bin/bash -# check if corrupter is installed -if ! command -v corrupter &>/dev/null; then - notify-send "swaylock" "corrupter could not be found" - exit -fi - sshot="/tmp/swaylockscreen.png" blurred="/tmp/swaylockscreen-blurred.png" -grim $sshot && - # ffmpeg -i $sshot -filter_complex boxblur=lr=8:lp=2 -y $blurred && \ - corrupter -mag 2 -boffset 20 $sshot $blurred && \ + +grim $sshot && \ +ffmpeg -i $sshot -filter_complex boxblur=lr=8:lp=2 -y $blurred && \ swaylock -i $blurred \ --font "Hack Nerd Font Mono" \ --font-size=25 \