Keep Slack/Teams active by simulating key presses at regular intervals
Project description
lazy-b
Keep Slack, Microsoft Teams, or other similar applications from showing you as "away" or "inactive" by simulating key presses at regular intervals.
Installation
Install directly from PyPI using pip or uv:
# Using pip
pip install lazy-b
# Using uv
uv pip install lazy-b
Usage
Command Line
Run lazy-b from the command line:
# Basic usage (will press Shift key every 60 seconds)
lazy-b
# Customize the interval (e.g., every 30 seconds)
lazy-b --interval 30
# Run in quiet mode (no console output)
lazy-b --quiet
Press Ctrl+C to stop.
Python API
You can also use the Python API directly in your own scripts:
from lazy_b import LazyB
import time
# Create an instance with a custom interval (in seconds)
lazy = LazyB(interval=45)
# Define a callback function to handle status messages (optional)
def status_callback(message):
print(f"Status: {message}")
# Start the simulation
lazy.start(callback=status_callback)
try:
# Keep your script running
while True:
time.sleep(1)
except KeyboardInterrupt:
# Stop on Ctrl+C
lazy.stop()
Features
- Prevents "away" or "inactive" status in messaging applications
- Customizable interval between key presses
- Simple command-line interface
- Python API for integration into your own scripts
- Minimal resource usage
Requirements
- Python 3.8 or higher
- PyAutoGUI
License
MIT
Disclaimer
This tool is meant for legitimate use cases like preventing timeouts during presentations or when you're actively reading but not typing. Please use responsibly and in accordance with your organization's policies.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file lazy_b-0.1.0.tar.gz.
File metadata
- Download URL: lazy_b-0.1.0.tar.gz
- Upload date:
- Size: 3.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b818be56ebe4c95f9b232f6a9790a7dffc0461dd857e24309bfd9fa15890eaa1
|
|
| MD5 |
adb938350457cf5e22a31ed77d150f65
|
|
| BLAKE2b-256 |
880148a3728296b7b8ce8cf3cbd2d76f879afc5df529c2b722454b4c65f05966
|
File details
Details for the file lazy_b-0.1.0-py3-none-any.whl.
File metadata
- Download URL: lazy_b-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a7195aff68aa2a0c9ba15a78fcc5f53cbb0e2141565b37707556ee8b5d33edc
|
|
| MD5 |
b4e91563bc130a6d7713bc26088e5e4f
|
|
| BLAKE2b-256 |
6d87137ca49d5ae37a3ef70a9512e69dbe0e6b18d71b1fad2ec460e2d8931006
|