Desk Awake
Cross-platform idle activity simulator with a web control panel. Keeps your session active over AnyDesk by generating mouse movements and keyboard actions.
Features:
- Auto-detects OS (macOS/Linux/Windows) and uses appropriate keys and commands
- Web dashboard — control run/pause/stop and AnyDesk connections from any browser
- Connection monitoring — detects AnyDesk drops, auto-reconnects, sends alerts
- Notifications — Slack, Discord, or generic webhook alerts on connection issues
- Multi-day scheduling — run daily on a schedule until an end date
- Expose via ngrok for remote control from anywhere
Installation
pip install desk-awake
# On macOS, include optional mac dependencies
pip install "desk-awake[mac]"
Usage
Web Dashboard Mode (recommended)
Start the control panel:
desk-awake serve
desk-awake serve --port 8080
Then open http://localhost:5000 in your browser. From the dashboard you can:
- Run / Pause / Stop the activity simulator
- Connect to AnyDesk by entering a remote address
- Monitor connection health — auto-reconnects on drops
- Set webhook URL for Slack/Discord alerts
- View live logs
To access remotely via ngrok:
# In another terminal
ngrok http 5000
Headless Mode (no web UI)
# Run until a specific time
desk-awake run --until "18:30"
# Multi-day: run 09:00–18:30 daily until a date
desk-awake run -u "18:30" -s "09:00" -e "2026-06-15"
# Skip sleep on exit
desk-awake run -u "18:30" --no-sleep
Exit behavior flags (headless mode)
| 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 | ✅ | ✅ |
Connection Monitoring
When running in web dashboard mode with an AnyDesk address configured:
- Checks connection every 15 seconds
- On disconnect: attempts up to 5 reconnections
- Sends webhook notification on connection loss and recovery
- If all reconnect attempts fail, stops and sends a final alert
Webhook Notifications
Set a webhook URL in the dashboard settings to receive alerts:
- Slack:
https://hooks.slack.com/services/... - Discord:
https://discord.com/api/webhooks/... - Any endpoint accepting JSON POST with
titleandmessagefields
Running without installing
python -m desk_awake serve
python -m desk_awake run --until "18:30"
Requirements
- Python 3.8+
pynput(installed automatically)flask(installed automatically)- On macOS:
pyobjcpackages (install withpip install "desk-awake[mac]") - On Linux: may need
xdotoolor X11 libs depending on your display server
Metadata
Release files for desk-awake 1.6.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| desk_awake-1.6.3.tar.gz | 30.7 kB | Without provenance | Details for desk_awake-1.6.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| desk_awake-1.6.3-py3-none-any.whl | Python 3 | none | any | Details for desk_awake-1.6.3-py3-none-any.whl |
Total release size: 64.9 kB
Release files / desk_awake-1.6.3.tar.gz
| Download URL | desk_awake-1.6.3.tar.gz |
|---|---|
| Size | 30.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
583638fb11ad4dae5d3671a080d2b436502868f87c4a46d8cc228545548ab4ea
|
|
BLAKE2b-256 checksum How to use checksums |
8459701286dfbb671f36578ec39b978fafac81764d4618910a0b019285b457be
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Release files / desk_awake-1.6.3-py3-none-any.whl
| Download URL | desk_awake-1.6.3-py3-none-any.whl |
|---|---|
| Size | 34.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
439fdfc0b3b6a60966b7eb46356b689d012f932c17d683dd44561e0e71dc69ec
|
|
BLAKE2b-256 checksum How to use checksums |
5342cb788c592c7461470b69378416fd13f1a243354a51e882c42af200249a72
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.12.13
|
Security for desk-awake 1.6.3
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.