https://github.com/realorangeone/pranklock
Fake lock screen to capture intruders
https://github.com/realorangeone/pranklock
i3 i3lock pranklock
Last synced: 9 months ago
JSON representation
Fake lock screen to capture intruders
- Host: GitHub
- URL: https://github.com/realorangeone/pranklock
- Owner: RealOrangeOne
- Created: 2019-04-13T11:00:36.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2023-10-04T07:43:52.000Z (over 2 years ago)
- Last Synced: 2025-02-28T06:54:29.276Z (over 1 year ago)
- Topics: i3, i3lock, pranklock
- Language: Shell
- Homepage: https://theorangeone.net/projects/pranklock/
- Size: 18.6 KB
- Stars: 9
- Watchers: 4
- Forks: 1
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# pranklock
[](https://circleci.com/gh/RealOrangeOne/pranklock)
Based on the original work of [@Adimote](https://github.com/adimote) in [this version](https://github.com/trickeydan/dotfiles-ubuntu/blob/master/files/desktop/i3/pranklock.sh).
Locks the screen with a screenshot of the desktop. If any key is pressed, or the mouse moves, capture an image with the webcam, and lock the screen again using that.
## Dependencies
- `i3lock`
- `ffmpeg`
- `xdotool`
## Usage
1. Install the above dependencies
2. Run the `pranklock` script to _lock_ your screen
By default, the first webcam (`/dev/video0`) is used. To change this, pass the video device as an argument (eg `pranklock /dev/video1`)
3. To safely unlock without showing the webcam image, press the Escape key. You can then unlock as normal.