Skip to content
/ snsr Public

A simple Python-based "screensaver" script that simulates random mouse movements and keystrokes using pyautogui. This can be used to prevent your system from going idle or triggering screen lock due to inactivity.

Notifications You must be signed in to change notification settings

nichsedge/snsr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

snsr

A playful Python-based "screensaver" that randomly moves your mouse and simulates key presses to keep your screen active.

Features

  • Moves the mouse to random screen positions.
  • Simulates random key presses.
  • Keeps your system from going idle.
  • Lightweight and easy to use.

Usage

Using uv

If you're using uv, you can run the snsr command directly without needing to activate a virtual environment first. Just use uvx:

uvx snsr

Using pip

You can install snsr using pip:

pip install snsr
snsr

It will:

  • Move your mouse to random points on the screen
  • Press a random key (a, s, d, f, j, k, l)
  • Repeat this process every few seconds

To Stop

Press Ctrl+C in the terminal to exit.

Notes

  • Ensure your OS allows simulated input events from Python scripts.
  • Useful for keeping your machine awake during long tasks (e.g., rendering, builds, meetings).

Disclaimer

This project is intended for educational or personal use only. Use responsibly and respect your organization's policies regarding input automation.


MIT License © 2025

About

A simple Python-based "screensaver" script that simulates random mouse movements and keystrokes using pyautogui. This can be used to prevent your system from going idle or triggering screen lock due to inactivity.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages