screenlock

This commit is contained in:
CDaut 2024-02-25 23:44:38 +01:00
parent 41640f72ad
commit dd57859fc8
Signed by: clara
GPG key ID: 223391B52FAD4463
4 changed files with 18 additions and 0 deletions

8
programm_configs/lock.sh Normal file
View file

@ -0,0 +1,8 @@
#!/bin/sh
scrot /tmp/screenshot.png
convert /tmp/screenshot.png -blur 0x10 /tmp/screenshotblur.png
set -e
xset s off dpms 0 10 0
i3lock -i /tmp/screenshotblur.png --ignore-empty-password --show-failed-attempts --nofork
rm -f /tmp/screenshot.png
xset s off -dpms