Skip to main content

infinity-mouse

infinity mouse

Python script that moves the mouse in an ∞ pattern after a set inactivity timeout.

Requirements

  • Python 3.9+
  • macOS, Windows, or Linux (X11)
  • Packages: see requirements.txt
  • Linux note: on X11 the script uses python-xlib + XTEST for low-level mouse events; if this backend is unavailable it exits with a warning

Installation

Using Pip

Linux / macOS

mkdir infinity-mouse
cd infinity-mouse && python3 -m venv .venv/ && source .venv/bin/activate

pip install infinity-mouse

# Run the script
infinity-mouse # You may need to allow system access permissions on macOS for your terminal app

# Press CTRL+C to exit the script

Windows (PowerShell)

mkdir infinity-mouse
cd infinity-mouse
python.exe -m venv .venv
.\.venv\Scripts\Activate.ps1

pip install infinity-mouse

# Run the script
python -m infinity_mouse

# Press CTRL+C to exit the script

Using Source

Linux / macOS

git clone https://github.com/mqxym/infinity-mouse
cd infinity-mouse && python3 -m venv .venv/ && source .venv/bin/activate && pip install -r requirements.txt

# Run the script
python run.py # You may need to allow system access permissions for your terminal app
python -m infinity_mouse
# Press CTRL+C to exit the script

Windows (PowerShell)

git clone https://github.com/mqxym/infinity-mouse
cd infinity-mouse
py -m venv .venv
.\.venv\Scripts\Activate.ps1
pip install -r requirements.txt

# Run the script
python run.py

# Press CTRL+C to exit the script

Options

  • Adjust the INACTIVITY_TIMEOUT_MIN and INACTIVITY_TIMEOUT_MAX values in the script or use CLI parameters:
# Run the script with min-max timeout in seconds
infinity-mouse 80-120
python -m infinity_mouse 80-120

# Test the script
infinity-mouse --test
python -m infinity_mouse --test

# View options
infinity-mouse -h
python -m infinity_mouse -h

Project Goals

  • Learn automation like mouse movements and processing of inputs and HMIs
  • Learn pattern creation with sinus functions for the infinity movement pattern
  • Build and test CI/CD workflows
  • Cross-platform Python development

Metadata

Release files for infinity-mouse 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for infinity-mouse 0.3.0
File Size Uploaded
infinity_mouse-0.3.0.tar.gz 6.3 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for infinity-mouse 0.3.0
File Interpreter ABI Platform
infinity_mouse-0.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 13.4 kB

Release files / infinity_mouse-0.3.0.tar.gz

Download URL infinity_mouse-0.3.0.tar.gz
Size 6.3 kB
Tags Source
SHA-256 checksum
How to use checksums
660857d16aac58cd9d69b90f641db8c20b87bc935453c4a42c2ba88cdefc8176
BLAKE2b-256 checksum
How to use checksums
8837bc021c271c656c14f29700a906829133118011b7c3ff15ac2f644068f50b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 16, 2026.

Transparency log

Release files / infinity_mouse-0.3.0-py3-none-any.whl

Download URL infinity_mouse-0.3.0-py3-none-any.whl
Size 7.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
be5d7db0017eae4c549213fa0d2d93bc65d177554d49a9d9bd143a0f1a7b7603
BLAKE2b-256 checksum
How to use checksums
65d5ae20677a682015e7298718ebdd75bf1dcbf5b677033c5dfcf1cea8d44e4e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on May 16, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.0 This release

2 release files

0.2.4

2 release files

0.2.2

2 release files

0.2.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page