Your PC's personal coffee! Never sleep again! โ๐ป
Keep-Awake is a lightweight, feature-rich tool that prevents your Windows PC from going to sleep. With multiple keep-awake modes, smart user detection, and a beautiful material design interface, it's the perfect solution for keeping your status "Active" during presentations, long downloads, or when you just need your computer to stay awake!
Main interface with material design and all settings
Timed mode showing countdown timer
Smart mode actively detecting and skipping when user is active
- Clean green and white interface with proper alignment
- Real-time status updates with countdown timer
- Consolidated settings panel with intuitive layout
- Always-on-top status window with tray integration
- Infinite Mode - Run continuously until manually stopped
- Timed Mode - Auto-stop after set duration
- Quick presets: 15 min, 30 min, 1 hour, 2 hours
- Custom duration support (1-1440 minutes)
- Real-time countdown display
- F15 Key (Default) - Silent, non-intrusive key press
- Mouse Shake - Quick horizontal mouse shake
- Mouse Move - Diagonal mouse movement
- Key Press - Shift key press (harmless)
- Automatically detects user activity
- Pauses keep-awake when you're using your PC
- Real-time skip indicator in status panel
- 10-second idle threshold detection
- Optional notification when timed session ends
- Visual feedback on settings changes
- System tray integration with coffee icon
- Live statistics and uptime tracking
- ๐ Real-time Monitoring - Live stats with formatted time display
- ๐ฏ Dual Mode - GUI mode by default, CLI mode with arguments
- ๐คซ Quiet Mode - Run silently in the background
- ๐ฆ Truly Portable - Single standalone .exe (~1.2MB)
- ๐ Lightweight - Minimal resource usage
-
Download
keep-awake.exefrom Releases -
Double-click to launch - Opens a GUI status window!
- Shows running time (e.g., "2m 30s")
- Displays mouse shake statistics
- Click "Run in Background" to minimize to tray
- Click "Exit" to close the application
-
Or run from command line for CLI mode:
keep-awake.exe --interval 30 --shake-size 5
โจ Truly Portable: Single .exe file (~1.2MB) with embedded coffee icon - works anywhere on Windows!
# Clone the repository
git clone https://github.com/Ketan-K/keep-awake.git
cd keep-awake
# Run the AutoHotkey script directly (requires AutoHotkey v1.1)
"C:\Program Files\AutoHotkey\AutoHotkey.exe" keep-awake.ahk
# Or edit keep-awake.ahk with any text editor and customizeSimply double-click keep-awake.exe to launch the beautiful interface:
Main Interface Features:
- ๐จ Material Design - Clean green and white theme
- โฑ๏ธ Duration Settings
- Choose Infinite or Timed mode
- Quick presets (15/30/60/120 minutes) or custom duration
- Real-time countdown when in timed mode
- ๐ฑ๏ธ Mode Selection
- F15 Key (default, silent)
- Mouse Shake (horizontal)
- Mouse Move (diagonal)
- Key Press (Shift key)
- ๐ง Smart Controls
- Shake/Move size (only shown for mouse modes)
- Frequency adjustment (1-3600 seconds)
- ๐ง Smart Mode - Auto-detects user activity and pauses
- ๐ Notifications - Optional alert when session ends
- ๐ Live Status - Shows mode, frequency, and remaining time
Tray Icon Features:
- Coffee cup icon in system tray
- Right-click โ "Open" to show window
- Right-click โ "Exit" to close
- Hover for tooltip with stats
Run with arguments to use command-line mode with table output:
keep-awake.exe [options]
Options:
--interval <seconds> Set interval between shakes (default: 60)
--shake-size <pixels> Set shake distance (default: 10)
--quiet Suppress console output
--help Show help message
Examples:
keep-awake.exe # GUI mode (default)
keep-awake.exe --interval 30 --shake-size 5 # CLI mode with custom settings
keep-awake.exe --quiet # CLI silent mode
keep-awake.exe --help # Show help| Option | Description | Default | Range |
|---|---|---|---|
--interval |
Time between shakes (seconds) | 60 | 1-3600 |
--shake-size |
Shake distance in pixels | 10 | 1-100 |
--quiet |
Suppress all console output (CLI mode only) | false | - |
--help |
Display help message | - | - |
When run with arguments, displays running status:
================================
KEEP-AWAKE is running
Interval: 60s | Shake Size: 10px
================================
Mouse shakes performed every 60 seconds...
Press Ctrl+C to exit
Note: The shake motion moves the mouse slightly right and immediately back to its original position. No position tracking is shown in CLI mode since the mouse returns to where it started.
- AutoHotkey v1.1 installed
- Node.js (for build script only)
# Clone the repository
git clone https://github.com/Ketan-K/keep-awake.git
cd keep-awake
# Build the executable
npm run build
# Output: dist/keep-awake.exe (~1.2MB standalone file)# Compile with AutoHotkey
"C:\Program Files\AutoHotkey\Compiler\Ahk2Exe.exe" /in keep-awake.ahk /out keep-awake.exe /icon keep-awake.icoNote: The keep-awake.ico coffee cup icon is included in the repository and embedded into the executable during compilation.
- ๐ Presentations - Keep screen active during long demos with timed auto-stop
- ๐ฌ Teams/Slack - Stay "Active" while reading documentation (Smart Mode pauses when you type!)
- ๐ฅ Downloads - Prevent sleep during large file transfers with custom duration
- ๐ฅ Streaming - Keep PC awake during broadcasts with F15 mode (silent)
- ๐ Reading - No interruptions while deep in articles
- ๐งช Testing - Long-running automated tests or builds
- โ Coffee Breaks - Set a timer and get notified when it's time to come back!
v2.0 Material Design Interface:
- ๐จ Modern Layout - Green and white theme with proper grid alignment
- โฑ๏ธ Duration Control - Infinite or Timed with countdown display
- ๐ฑ๏ธ 4 Keep-Awake Modes - F15, Mouse Shake, Mouse Move, Key Press
- ๐ง Smart Mode - Auto-detects user activity with skip indicator
- ๐ Notifications - Optional alerts when session ends
- ๐ Real-time Stats - Live uptime, mode, frequency, and remaining time
- ๐ฏ Dynamic Controls - Shake size only shows for mouse modes
- โ Tray Integration - Coffee cup icon with quick access
- โ Visual Feedback - "Applied!" confirmation on settings changes
- ๐ Single Instance - Prevents multiple windows
- ๐ Always On Top - Option to keep window visible (can minimize to tray)
This tool is intended for legitimate personal use only. Please use responsibly and in accordance with your workplace policies. The author is not responsible for any misuse of this software.
Remember: The best way to stay active is to actually be active! This tool is for those moments when you genuinely need your PC awake but can't interact with it. ๐
This project is licensed under the MIT License - see the LICENSE file for details.
Contributions, issues, and feature requests are welcome! Feel free to check the issues page.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'โจ Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
Give a โญ๏ธ if this project kept your PC awake!
Made with โ by Ketan-K
Keep calm and stay awake! ๐ดโก๏ธ๐