mirror of https://gitlab.com/dabruh/dotfiles.git
Screenshot before locking.
This commit is contained in:
parent
daf4a691eb
commit
32757e4e15
|
@ -21,10 +21,12 @@ _unlock() {
|
|||
lock() {
|
||||
local screen=/tmp/screenshot.png blurred=/tmp/screenshotblur.png
|
||||
|
||||
$LOCK_SCREEN_BLUR && scrot -q 100 $screen # Take screenshot
|
||||
|
||||
_lock # Lock immediately
|
||||
|
||||
if $LOCK_SCREEN_BLUR; then
|
||||
# Take screenshot and blur it
|
||||
if [ -f $screen ]; then
|
||||
# Blur screenshot
|
||||
scrot -q 100 $screen || return 1 # Larger file size, but faster
|
||||
convert -scale 10% -blur 0x1.25 -resize 1000% $screen $blurred || return 1
|
||||
rm $screen
|
||||
|
|
Loading…
Reference in New Issue