26 lines
493 B
Markdown
26 lines
493 B
Markdown
# caffeine
|
|
|
|
Keeps your PC awake and your status active by simulating an F16 keypress every 60 seconds.
|
|
|
|
## Requirements
|
|
|
|
```bash
|
|
pip install pynput
|
|
```
|
|
|
|
## Usage
|
|
|
|
```bash
|
|
python3 caffeine.py
|
|
```
|
|
|
|
## Output
|
|
Caffeine started. Ctrl+C to stop.
|
|
[2026-05-09 10:00:00] F16 pressed #1
|
|
[2026-05-09 10:01:00] F16 pressed #2
|
|
|
|
Press `Ctrl+C` to stop.
|
|
|
|
## Why F16?
|
|
|
|
F16 exists at OS level but isn't mapped to any action in most applications, so it registers as activity without interfering with your work.
|