Skip to content

Instantly share code, notes, and snippets.

@dinkopehar
Created July 19, 2020 21:21
Show Gist options
  • Save dinkopehar/6f97dd69f7e44fa7e9292358f60a4ed4 to your computer and use it in GitHub Desktop.
Save dinkopehar/6f97dd69f7e44fa7e9292358f60a4ed4 to your computer and use it in GitHub Desktop.
Screenshot intruder with ffmpeg, show his face to him and lock the session
ffmpeg -y -i /dev/video0 -vframes 1 -q:v 2 ~/output.jpg
gwenview -f ~/output.jpg &
sleep 2
loginctl lock-session
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment