Cross-platform idle activity simulator with AnyDesk integration
Project description
Desk Awake
Cross-platform idle activity simulator. Keeps your session active by generating mouse movements and keyboard actions until a specified time.
Auto-detects the OS and uses appropriate modifier keys (Cmd on macOS, Ctrl on Linux/Windows) and system commands.
Installation
pip install desk-awake
# On macOS, include the optional mac dependencies
pip install "desk-awake[mac]"
Usage
Once installed, the desk-awake command is available globally:
# Run until a specific time (24h format)
desk-awake --until "18:30"
# Run until a specific date and time
desk-awake --until "2025-01-15 17:00"
# Short flag works too
desk-awake -u "18:30"
Multi-day mode
Run daily on a schedule until a specific end date:
# Run every day from 09:00 to 18:30, until June 15th
desk-awake -u "18:30" --start "09:00" --end-date "2026-06-15"
Exit behavior flags
| Flag | Description |
|---|---|
--close-anydesk |
Close AnyDesk when done (default) |
--no-close-anydesk |
Don't close AnyDesk when done |
--sleep |
Put machine to sleep when done |
--no-sleep |
Don't sleep when done |
OS-specific defaults
| OS | Close AnyDesk | Sleep |
|---|---|---|
| macOS | ✅ | ✅ |
| Linux | ✅ | ❌ |
| Windows | ✅ | ✅ |
Override any default with the flags above.
Examples
# Ubuntu: run until 6:30 PM, close AnyDesk, no sleep (default)
desk-awake -u "18:30"
# macOS: run until 6:30 PM, close AnyDesk, sleep (default)
desk-awake -u "18:30"
# macOS: skip sleep
desk-awake -u "18:30" --no-sleep
# Linux: force sleep too
desk-awake -u "18:30" --sleep
# Multi-day: run 09:00–18:30 daily until a date
desk-awake -u "18:30" -s "09:00" -e "2026-06-15"
# Keep everything running, don't close anything
desk-awake -u "18:30" --no-close-anydesk --no-sleep
Running without installing
python -m desk_awake --until "18:30"
Requirements
- Python 3.8+
pynput(installed automatically)- On macOS:
pyobjcpackages (install withpip install "desk-awake[mac]") - On Linux: may need
xdotoolor X11 libs depending on your display server
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 desk_awake-1.0.0.tar.gz.
File metadata
- Download URL: desk_awake-1.0.0.tar.gz
- Upload date:
- Size: 6.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c060dd6580548db43621ce6faff6884367c365784a75a1ea821c8f0b749f798a
|
|
| MD5 |
614d344b9247292841843f24ced67bc4
|
|
| BLAKE2b-256 |
d87dc159cf07cfef587ca5f7ffd50670293c661936ac2e422be4e7a2b29fbab0
|
File details
Details for the file desk_awake-1.0.0-py3-none-any.whl.
File metadata
- Download URL: desk_awake-1.0.0-py3-none-any.whl
- Upload date:
- Size: 6.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
10590d81abb31313dc872f8a02ab7fb278bc1a5c542a4eabf378bbe925ba6496
|
|
| MD5 |
b990ac221755c729efd2a2105f466757
|
|
| BLAKE2b-256 |
cb66df22430e6e29eb1a3fc10d09e2cfaa437cef2de744705f2f0f3c1dd9ef35
|