Skip to main content

Mouse infinity movement after timeout.

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

infinity_mouse-0.3.0.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

infinity_mouse-0.3.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file infinity_mouse-0.3.0.tar.gz.

File metadata

  • Download URL: infinity_mouse-0.3.0.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for infinity_mouse-0.3.0.tar.gz
Algorithm Hash digest
SHA256 660857d16aac58cd9d69b90f641db8c20b87bc935453c4a42c2ba88cdefc8176
MD5 3a04636e6fce0bfaa95d669a4f4e70c2
BLAKE2b-256 8837bc021c271c656c14f29700a906829133118011b7c3ff15ac2f644068f50b

See more details on using hashes here.

Provenance

The following attestation bundles were made for infinity_mouse-0.3.0.tar.gz:

Publisher: python-publish.yml on mqxym/infinity-mouse

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file infinity_mouse-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: infinity_mouse-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for infinity_mouse-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 be5d7db0017eae4c549213fa0d2d93bc65d177554d49a9d9bd143a0f1a7b7603
MD5 23a8c6e3d05db549f2161b8205777333
BLAKE2b-256 65d5ae20677a682015e7298718ebdd75bf1dcbf5b677033c5dfcf1cea8d44e4e

See more details on using hashes here.

Provenance

The following attestation bundles were made for infinity_mouse-0.3.0-py3-none-any.whl:

Publisher: python-publish.yml on mqxym/infinity-mouse

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page