20 lines
343 B
Bash
Executable File
20 lines
343 B
Bash
Executable File
#!/bin/bash
|
|
# /usr/bin/blurlock
|
|
|
|
# take screenshot
|
|
scrot /tmp/screenshot.png
|
|
|
|
# blur it
|
|
convert /tmp/screenshot.png -blur 0x12 /tmp/screenshotblur.png
|
|
rm /tmp/screenshot.png
|
|
|
|
# lock the screen
|
|
i3lock -i /tmp/screenshotblur.png
|
|
|
|
# sleep 1 adds a small delay to prevent possible race conditions with suspend
|
|
sleep 1
|
|
|
|
xset dpms force off
|
|
|
|
exit 0
|