Forgot to lock your computer? Then you notice your friend's wanting to ruin it? Remotly jumpscare them! And best of all, record their reaction!
This carefuly crafted Python script will max out the volume, play a video of you choice at full screen after disabling desktop animations, while recording the webcam.
This software has been tested on Fedora Workstation and require the following:
- GNOME Desktop Environment with Wayland session
- PipeWire as audio server
- FFPLAY/FFMPEG installed (required for playing the video and recording webcam)
You can trigger the jumpscare with any tool allowing you to run a command on the target session. In my case I conveniently use GSConnect + KDE Connect from my phone:
Another solution is to use ssh to remotely run the script (via Tailscale for easy access via phone).
I recommend you this very effective jumpscare (beware if you are subject to epilepsy): https://youtu.be/ToRqXvEfSCQ
Create virtualenv:
python3 -m venv .venv && source .venv/bin/activateRun the script (with your webcam device and video file):
python main.py /dev/video1 /path/to/video.mp4You can also run the convenience script run.sh:
main.sh /dev/video1 /path/to/video.mp4See --help for more options.
You can setup a command in GSConnect for exemple to run the script.
Alternatively you can use ssh:
WAYLAND_DISPLAY=wayland-0 main.sh /dev/video1 /path/to/video.mp4